fromMap static method

SettingsTimeZoneList? fromMap(
  1. Object? body
)

Implementation

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