UProductCreateParams.fromMap constructor
UProductCreateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UProductCreateParams.fromMap(Map<String, dynamic> json) => UProductCreateParams(
title: json["title"],
code: json["code"],
subtitle: json["subtitle"],
description: json["description"],
actionType: json["actionType"],
actionTitle: json["actionTitle"],
actionUri: json["actionUri"],
slug: json["slug"],
type: json["type"],
content: json["content"],
latitude: json["latitude"],
longitude: json["longitude"],
stock: json["stock"],
price: json["price"],
details: json["details"],
point: json["point"],
tags: List<int>.from(json["tags"].map((dynamic x) => x)),
categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
relatedProducts: json["relatedProducts"] == null ? null : List<String>.from(json["relatedProducts"].map((dynamic x) => x)),
parentId: json["parentId"],
userId: json["userId"],
);