fromMap static method

SettingsTimeZone? fromMap(
  1. Object? body
)

Implementation

static SettingsTimeZone? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return SettingsTimeZone(
    code: readText(source['code']),
    createdBy: readAny(source['created_by']),
    createdOn: readText(source['created_on']),
    description: readAny(source['description']),
    dstEnabled: readFlag(source['dst_enabled']),
    hour: readInteger(source['hour']),
    href: readText(source['href']),
    id: readText(source['id']),
    lastUpdatedBy: readAny(source['last_updated_by']),
    lastUpdatedOn: readText(source['last_updated_on']),
    minute: readInteger(source['minute']),
    name: readText(source['name']),
    object: readText(source['object']),
    offset: readInteger(source['offset']),
    positive: readFlag(source['positive']),
    status: readText(source['status']),
    timeZonePattern: readText(source['time_zone_pattern']),
  );
}