toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "_id": id,
      "name": name,
      "clientId": clientId,
      "gameId": gameId,
      "status": status,
      "description": description,
      "platform": platform,
      "nudges": List<dynamic>.from(nudges.map((x) => x.toJson())),
      "delay": delay.toJson(),
      "entryUrl": entryUrl,
      "createdAt": createdAt.toIso8601String(),
      "updatedAt": updatedAt.toIso8601String(),
      "__v": v,
    };