UProductUpdateParams.fromMap constructor

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

Implementation

factory UProductUpdateParams.fromMap(Map<String, dynamic> json) => UProductUpdateParams(
      title: json["title"],
      code: json["code"],
      subtitle: json["subtitle"],
      description: json["description"],
      slug: json["slug"],
      type: json["type"],
      content: json["content"],
      latitude: json["latitude"],
      longitude: json["longitude"],
      stock: json["stock"],
      price: json["price"],
      point: json["point"],
      parentId: json["parentId"],
      userId: json["userId"],
      actionType: json["actionType"],
      actionTitle: json["actionTitle"],
      actionUri: json["actionUri"],
      details: json["details"],
      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)),
      addCategories: json["addCategories"] == null ? null : List<String>.from(json["addCategories"].map((dynamic x) => x)),
      removeCategories: json["removeCategories"] == null ? null : List<String>.from(json["removeCategories"].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)),
    );