GetShippingRatesResponse.fromJson constructor
GetShippingRatesResponse.fromJson(
- Object? json
Implementation
factory GetShippingRatesResponse.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return GetShippingRatesResponse(
data: (map['data'] as List<Object?>)
.map((el) => ShippingRate.fromJson(el))
.toList(),
hasMore: (map['has_more'] as bool),
url: (map['url'] as String),
);
}