CreditNoteTaxAmountsItem.fromJson constructor

CreditNoteTaxAmountsItem.fromJson(
  1. Object? json
)

Implementation

factory CreditNoteTaxAmountsItem.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CreditNoteTaxAmountsItem(
    amount: (map['amount'] as num).toInt(),
    taxRate: (map['tax_rate'] as String),
    taxableAmount: (map['taxable_amount'] as num).toInt(),
  );
}