UCategoryUpdateParams.fromMap constructor
UCategoryUpdateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UCategoryUpdateParams.fromMap(Map<String, dynamic> json) => UCategoryUpdateParams(
title: json["title"],
subtitle: json["subtitle"],
link: json["link"],
location: json["location"],
type: json["type"],
order: json["order"],
parentId: json["parentId"],
relatedProducts: json["relatedProducts"] == null ? null : List<String>.from(json["relatedProducts"].map((dynamic x) => x)),
addRelatedProducts: json["addRelatedProducts"] == null ? null : List<String>.from(json["addRelatedProducts"].map((dynamic x) => x)),
removeRelatedProducts: json["removeRelatedProducts"] == null ? null : List<String>.from(json["removeRelatedProducts"].map((dynamic x) => x)),
id: json["id"],
addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"].map((dynamic x) => x)),
removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"].map((dynamic x) => x)),
tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
);