fromMap static method

PaymentReadInvoice? fromMap(
  1. Object? body
)

Implementation

static PaymentReadInvoice? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PaymentReadInvoice(
    applied: readText(source['applied']),
    dueDate: readText(source['due_date']),
    id: readText(source['id']),
    issueDate: readText(source['issue_date']),
    outstanding: readText(source['outstanding']),
    total: readText(source['total']),
  );
}