ProductCluster.fromJson constructor

ProductCluster.fromJson(
  1. Map json_
)

Implementation

ProductCluster.fromJson(core.Map json_)
    : this(
        brand:
            json_.containsKey('brand') ? json_['brand'] as core.String : null,
        brandInventoryStatus: json_.containsKey('brandInventoryStatus')
            ? json_['brandInventoryStatus'] as core.String
            : null,
        categoryL1: json_.containsKey('categoryL1')
            ? json_['categoryL1'] as core.String
            : null,
        categoryL2: json_.containsKey('categoryL2')
            ? json_['categoryL2'] as core.String
            : null,
        categoryL3: json_.containsKey('categoryL3')
            ? json_['categoryL3'] as core.String
            : null,
        categoryL4: json_.containsKey('categoryL4')
            ? json_['categoryL4'] as core.String
            : null,
        categoryL5: json_.containsKey('categoryL5')
            ? json_['categoryL5'] as core.String
            : null,
        inventoryStatus: json_.containsKey('inventoryStatus')
            ? json_['inventoryStatus'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        variantGtins: json_.containsKey('variantGtins')
            ? (json_['variantGtins'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );