fromMap static method
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']),
);
}