UpdateBlogObject.fromJson constructor

UpdateBlogObject.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateBlogObject.fromJson(Map<String, dynamic> json) => UpdateBlogObject(
    id: json["_id"],
    type: json["_type"],
    activityCount: json["activity_count"],
    atype: json["atype"],
    category: json["category"],
    moderation: json["moderation"],
    points: json["points"],
    state: json["state"],
    createdAt: json["created_at"],
    module: json["module"],
    name: json["name"],
    team: json["team"],
    participant: UpdateBlogParticipant.fromJson(json["participant"]),
    votesCount: json["votes_count"],
    title: json["title"],
    format: json["format"],
    tags: List<String>.from(json["tags"].map((x) => x)),
    participantsTags: List<String>.from(json["participants_tags"].map((x) => x)),
    files: List<dynamic>.from(json["files"].map((x) => x)),
    pushRedirectUrl: json["push_redirect_url"],
);