PaymentLinksResourceShippingOption.fromJson constructor
PaymentLinksResourceShippingOption.fromJson(
- Object? json
Implementation
factory PaymentLinksResourceShippingOption.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentLinksResourceShippingOption(
shippingAmount: (map['shipping_amount'] as num).toInt(),
shippingRate: ShippingRateOrId.fromJson(map['shipping_rate']),
);
}