CreateBlogObject.fromJson constructor

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

Implementation

factory CreateBlogObject.fromJson(Map<String, dynamic> json) => CreateBlogObject(
    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"],
    pointType: json["point_type"],
    participant: CreateBlogParticipant.fromJson(json["participant"]),
    votesCount: json["votes_count"],
    title: json["title"],
    format: json["format"],
    tags: List<dynamic>.from(json["tags"].map((x) => x)),
    participantsTags: List<dynamic>.from(json["participants_tags"].map((x) => x)),
    files: List<dynamic>.from(json["files"].map((x) => x)),
    pushRedirectUrl: json["push_redirect_url"],
);