InvoicePayment.fromJson constructor

InvoicePayment.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory InvoicePayment.fromJson(Map<String, dynamic> j) => InvoicePayment(
      id: _pflicht<String>(j, 'id'),
      amountCents: _pflicht<num>(j, 'amountCents').toInt(),
      paidAt: _text(j, 'paidAt'),
      method: _text(j, 'method'),
      reference: _text(j, 'reference'),
    );