Sku.fromJson constructor

Sku.fromJson(
  1. Map json_
)

Implementation

Sku.fromJson(core.Map json_)
    : this(
        category: json_.containsKey('category')
            ? Category.fromJson(
                json_['category'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        geoTaxonomy: json_.containsKey('geoTaxonomy')
            ? GeoTaxonomy.fromJson(
                json_['geoTaxonomy'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pricingInfo: json_.containsKey('pricingInfo')
            ? (json_['pricingInfo'] as core.List)
                .map((value) => PricingInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serviceProviderName: json_.containsKey('serviceProviderName')
            ? json_['serviceProviderName'] as core.String
            : null,
        serviceRegions: json_.containsKey('serviceRegions')
            ? (json_['serviceRegions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        skuId:
            json_.containsKey('skuId') ? json_['skuId'] as core.String : null,
      );