ShippingRateDeliveryEstimateMaximum.fromJson constructor

ShippingRateDeliveryEstimateMaximum.fromJson(
  1. Object? json
)

Implementation

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