toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
    "_id": id,
    "_type": type,
    "activity_count": activityCount,
    "atype": atype,
    "category": category,
    "moderation": moderation,
    "points": points,
    "state": state,
    "created_at": createdAt,
    "module": module,
    "name": name,
    "team": team,
    "point_type": pointType,
    "participant": participant.toJson(),
    "votes_count": votesCount,
    "title": title,
    "format": format,
    "tags": List<dynamic>.from(tags.map((x) => x)),
    "participants_tags": List<dynamic>.from(participantsTags.map((x) => x)),
    "files": List<dynamic>.from(files.map((x) => x)),
    "push_redirect_url": pushRedirectUrl,
};