toMap method
Implementation
Map<String, dynamic> toMap() => {
"_id": id,
"name": name,
"clientId": clientId,
"gameId": gameId,
"challengeType": challengeType,
"rewardCriteria": rewardCriteria,
"description": description,
"status": status,
"props": props.toMap(),
"tasks": List<dynamic>.from(tasks.map((x) => x.toMap())),
"createdAt": createdAt.toIso8601String(),
"updatedAt": updatedAt.toIso8601String(),
"__v": v,
};