fromMap static method

PaymentsNoteAttachment? fromMap(
  1. Object? body
)

Implementation

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