fromMap static method

PurchaseCreditNoteUpdated? fromMap(
  1. Object? body
)

Implementation

static PurchaseCreditNoteUpdated? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'purchase_credit_note');
  if (source == null) return null;
  return PurchaseCreditNoteUpdated(
    code: readText(source['code']),
    href: readText(source['href']),
    id: readText(source['id']),
    object: readText(source['object']),
    status: PurchaseCreditNoteUpdatedStatus.fromMap(source['status']),
    version: readInteger(source['version']),
  );
}