UBlogReadParams.fromMap constructor
UBlogReadParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UBlogReadParams.fromMap(Map<String, dynamic> json) => UBlogReadParams(
pageSize: json["pageSize"],
pageNumber: json["pageNumber"],
fromCreatedAt: json["fromCreatedAt"] == null ? null : DateTime.parse(json["fromCreatedAt"]),
toCreatedAt: json["toCreatedAt"] == null ? null : DateTime.parse(json["toCreatedAt"]),
tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
ids: json["ids"] == null ? <String>[] : List<String>.from(json["ids"]!.map((dynamic x) => x)),
creatorId: json["creatorId"],
query: json["query"],
title: json["title"],
slug: json["slug"],
categories: json["categories"] == null ? <String>[] : List<String>.from(json["categories"]!.map((dynamic x) => x)),
selectorArgs: json["selectorArgs"] == null ? null : BlogSelectorArgs.fromMap(json["selectorArgs"]),
orderBy: json["orderBy"],
code: json["code"],
parentId: json["parentId"],
);