toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "taskDesc": taskDesc,
      "event": event,
      "frequency": frequency,
      "logic": logic,
      //"conditions": conditions.toMap(),
      "rewards": List<dynamic>.from(rewards.map((x) => x.toMap())),
      "status": status,
      "dateCompleted": dateCompleted,
      "taskId": taskId,
    };