fromMap static method

ComponentObjectNotes? fromMap(
  1. Object? body
)

Implementation

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