CarrierRate.fromJson constructor

CarrierRate.fromJson(
  1. Map json_
)

Implementation

CarrierRate.fromJson(core.Map json_)
    : this(
        carrierName: json_.containsKey('carrierName')
            ? json_['carrierName'] as core.String
            : null,
        carrierService: json_.containsKey('carrierService')
            ? json_['carrierService'] as core.String
            : null,
        flatAdjustment: json_.containsKey('flatAdjustment')
            ? Price.fromJson(json_['flatAdjustment']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        originPostalCode: json_.containsKey('originPostalCode')
            ? json_['originPostalCode'] as core.String
            : null,
        percentageAdjustment: json_.containsKey('percentageAdjustment')
            ? json_['percentageAdjustment'] as core.String
            : null,
      );