CarrierShipping.fromJson constructor
CarrierShipping.fromJson(
- Map json_
Implementation
CarrierShipping.fromJson(core.Map json_)
: this(
carrierPrice: json_['carrierPrice'] as core.String?,
carrierPriceFlatAdjustment:
json_.containsKey('carrierPriceFlatAdjustment')
? Price.fromJson(
json_['carrierPriceFlatAdjustment']
as core.Map<core.String, core.dynamic>,
)
: null,
carrierPricePercentageAdjustment:
(json_['carrierPricePercentageAdjustment'] as core.num?)
?.toDouble(),
carrierTransitTime: json_['carrierTransitTime'] as core.String?,
country: json_['country'] as core.String?,
fixedMaxTransitTime: json_['fixedMaxTransitTime'] as core.String?,
fixedMinTransitTime: json_['fixedMinTransitTime'] as core.String?,
flatPrice: json_.containsKey('flatPrice')
? Price.fromJson(
json_['flatPrice'] as core.Map<core.String, core.dynamic>,
)
: null,
maxHandlingTime: json_['maxHandlingTime'] as core.String?,
minHandlingTime: json_['minHandlingTime'] as core.String?,
originPostalCode: json_['originPostalCode'] as core.String?,
postalCode: json_['postalCode'] as core.String?,
region: json_['region'] as core.String?,
);