ItemItem.fromJson constructor Null safety

ItemItem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ItemItem.fromJson(Map<String, dynamic> json) => ItemItem(
      id: json["id"],
      name: json["name"],
      description: json["description"],
      imageUrl: json["imageURL"],
      videoUrl: json["videoURL"],
      thumbImageUrl: json["thumbImageURL"],
      listType: json["listType"],
      product:
          json["product"] == null ? null : Product.fromJson(json["product"]),
      itemSource: json["itemSource"],
      hasFilter: json["hasFilter"],
    );