fromMap static method

CreditNoteUpdated? fromMap(
  1. Object? body
)

Implementation

static CreditNoteUpdated? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'credit_note');
  if (source == null) return null;
  return CreditNoteUpdated(
    code: readText(source['code']),
    href: readText(source['href']),
    id: readText(source['id']),
    issueDate: readText(source['issue_date']),
    object: readText(source['object']),
    refundable: readFlag(source['refundable']),
    status: readText(source['status']),
    version: readInteger(source['version']),
  );
}