ClimateRemovalsProductsPrice.fromJson constructor
ClimateRemovalsProductsPrice.fromJson(
- Object? json
Implementation
factory ClimateRemovalsProductsPrice.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ClimateRemovalsProductsPrice(
amountFees: (map['amount_fees'] as num).toInt(),
amountSubtotal: (map['amount_subtotal'] as num).toInt(),
amountTotal: (map['amount_total'] as num).toInt(),
);
}