UBlogCreateParams.fromMap constructor

UBlogCreateParams.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UBlogCreateParams.fromMap(Map<String, dynamic> json) => UBlogCreateParams(
  detail1: json["detail1"],
  detail2: json["detail2"],
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  id: json["id"],
  creatorId: json["creatorId"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
  title: json["title"],
  subtitle: json["subtitle"],
  slug: json["slug"],
  content: json["content"],
  metaTitle: json["metaTitle"],
  metaDescription: json["metaDescription"],
  source: json["source"],
  categories: json["categories"] == null ? <String>[] : List<String>.from(json["categories"]!.map((dynamic x) => x)),
  media: json["media"] == null ? <String>[] : List<String>.from(json["media"]!.map((dynamic x) => x)),
  code: json["code"],
  description: json["description"],
  type: json["type"],
  actionType: json["actionType"],
  actionTitle: json["actionTitle"],
  actionUri: json["actionUri"],
  latitude: json["latitude"],
  longitude: json["longitude"],
  parentId: json["parentId"],
  relatedBlogs: json["relatedBlogs"] == null ? <String>[] : List<String>.from(json["relatedBlogs"]!.map((dynamic x) => x)),
  children: json["children"] == null ? <UBlogCreateParams>[] : List<UBlogCreateParams>.from(json["children"]!.map((dynamic x) => UBlogCreateParams.fromMap(x))),
);