ShippingRateDeliveryEstimateBound.fromJson constructor

ShippingRateDeliveryEstimateBound.fromJson(
  1. Object? json
)

Implementation

factory ShippingRateDeliveryEstimateBound.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ShippingRateDeliveryEstimateBound(
    unit: ShippingRateDeliveryEstimateMaximumUnit.fromJson(map['unit']),
    value: (map['value'] as num).toInt(),
  );
}