ProductShipping.fromJson constructor

ProductShipping.fromJson(
  1. Map json_
)

Implementation

ProductShipping.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        locationGroupName: json_.containsKey('locationGroupName')
            ? json_['locationGroupName'] as core.String
            : null,
        locationId: json_.containsKey('locationId')
            ? json_['locationId'] as core.String
            : null,
        maxHandlingTime: json_.containsKey('maxHandlingTime')
            ? json_['maxHandlingTime'] as core.String
            : null,
        maxTransitTime: json_.containsKey('maxTransitTime')
            ? json_['maxTransitTime'] as core.String
            : null,
        minHandlingTime: json_.containsKey('minHandlingTime')
            ? json_['minHandlingTime'] as core.String
            : null,
        minTransitTime: json_.containsKey('minTransitTime')
            ? json_['minTransitTime'] as core.String
            : null,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        price: json_.containsKey('price')
            ? Price.fromJson(
                json_['price'] as core.Map<core.String, core.dynamic>)
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
      );