InvoiceCustomerBalance.fromJson constructor

InvoiceCustomerBalance.fromJson(
  1. Object? json
)

Implementation

factory InvoiceCustomerBalance.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoiceCustomerBalance(
    bankTransfer: map['bank_transfer'] == null
        ? null
        : InvoiceBankTransfer.fromJson(map['bank_transfer']),
    fundingType:
        map['funding_type'] == null ? null : (map['funding_type'] as String),
  );
}