fromMap static method

CreditNoteItems? fromMap(
  1. Object? body
)

Implementation

static CreditNoteItems? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'credit_note');
  if (source == null) return null;
  return CreditNoteItems(
    href: readText(source['href']),
    items: readList<CreditNoteItem>(source['items'], CreditNoteItem.fromMap),
    object: readText(source['object']),
  );
}