fromMap static method

Implementation

static InvoiceNoteEntryAttachment? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return InvoiceNoteEntryAttachment(
    uuid: readText(source['uuid']),
    filename: readText(source['filename']),
    contentType: readText(source['content_type']),
    size: readInteger(source['size']),
    href: readText(source['href']),
  );
}