fromMap static method

PurchaseOrderNoteFile? fromMap(
  1. Object? body
)

Implementation

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