ShippingSettings.fromJson constructor

ShippingSettings.fromJson(
  1. Map json_
)

Implementation

ShippingSettings.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        postalCodeGroups: json_.containsKey('postalCodeGroups')
            ? (json_['postalCodeGroups'] as core.List)
                .map((value) => PostalCodeGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        services: json_.containsKey('services')
            ? (json_['services'] as core.List)
                .map((value) => Service.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        warehouses: json_.containsKey('warehouses')
            ? (json_['warehouses'] as core.List)
                .map((value) => Warehouse.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );