fromMap static method

ComponentObjectNoteFiles? fromMap(
  1. Object? body
)

Implementation

static ComponentObjectNoteFiles? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return ComponentObjectNoteFiles(
    data: readList<ComponentObjectNoteAttachment>(
        source['data'], ComponentObjectNoteAttachment.fromMap),
    object: readText(source['object']),
    pagination: Pagination.fromMap(source['pagination']),
    url: readText(source['url']),
  );
}