UBlogUpdateParams.fromMap constructor
UBlogUpdateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UBlogUpdateParams.fromMap(Map<String, dynamic> json) => UBlogUpdateParams(
id: json["id"],
detail1: json["detail1"],
detail2: json["detail2"],
addTags: json["addTags"] == null ? <int>[] : List<int>.from(json["addTags"]!.map((dynamic x) => x)),
removeTags: json["removeTags"] == null ? <int>[] : List<int>.from(json["removeTags"]!.map((dynamic x) => x)),
tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
addAdminUserIds: json["addAdminUserIds"] == null ? <String>[] : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
removeAdminUserIds: json["removeAdminUserIds"] == null ? <String>[] : List<String>.from(json["removeAdminUserIds"]!.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"],
addCategories: json["addCategories"] == null ? <String>[] : List<String>.from(json["addCategories"]!.map((dynamic x) => x)),
removeCategories: json["removeCategories"] == null ? <String>[] : List<String>.from(json["removeCategories"]!.map((dynamic x) => x)),
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"],
creatorId: json["creatorId"],
relatedBlogs: json["relatedBlogs"] == null ? <String>[] : List<String>.from(json["relatedBlogs"]!.map((dynamic x) => x)),
addRelatedBlogs: json["addRelatedBlogs"] == null ? <String>[] : List<String>.from(json["addRelatedBlogs"]!.map((dynamic x) => x)),
removeRelatedBlogs: json["removeRelatedBlogs"] == null ? <String>[] : List<String>.from(json["removeRelatedBlogs"]!.map((dynamic x) => x)),
);