SessionShippingOptionsItem.fromJson constructor
SessionShippingOptionsItem.fromJson(
- Object? json
Implementation
factory SessionShippingOptionsItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionShippingOptionsItem(
shippingRate: map['shipping_rate'] == null
? null
: (map['shipping_rate'] as String),
shippingRateData: map['shipping_rate_data'] == null
? null
: SessionShippingRateData.fromJson(map['shipping_rate_data']),
);
}