GetBlogObject.fromJson constructor

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

Implementation

factory GetBlogObject.fromJson(Map<String, dynamic> json) => GetBlogObject(
    id: json["_id"],
    admin: json["admin"],
    archived: json["archived"],
    atype: json["atype"],
    category: json["category"],
    executeDate: DateTime.parse(json["execute_date"]),
    extraPoints: json["extra_points"],
    moderation: json["moderation"],
    ownerName: json["owner_name"],
    points: json["points"],
    state: json["state"],
    team: json["team"],
    participant: GetBlogParticipant.fromJson(json["participant"]),
    permalink: json["permalink"],
    shortUrl: json["short_url"],
    facebookTabUrl: json["facebook_tab_url"],
    votesCount: json["votes_count"],
    votesAverage: json["votes_average"],
    votesUp: json["votes_up"],
    votesDown: json["votes_down"],
    title: json["title"],
    body: json["body"],
    editableBy: json["editable_by"],
    deleteableBy: json["deleteable_by"],
    createdAt: json["created_at"],
    format: json["format"],
    tags: List<dynamic>.from(json["tags"].map((x) => x)),
    participantsTags: List<dynamic>.from(json["participants_tags"].map((x) => x)),
);