CarrierRate.fromJson constructor

CarrierRate.fromJson(
  1. Map json_
)

Implementation

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