TransactionShippingCost.fromJson constructor
TransactionShippingCost.fromJson(
- Object? json
Implementation
factory TransactionShippingCost.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TransactionShippingCost(
amount: (map['amount'] as num).toInt(),
amountTax: (map['amount_tax'] as num).toInt(),
);
}