fromMap static method

Implementation

static SettingsGeneralSettingsDateAndTime? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return SettingsGeneralSettingsDateAndTime(
    dateFormat: readText(source['date_format']),
    firstDayOfWeek: readAny(source['first_day_of_week']),
    timeFormat: readText(source['time_format']),
    timeZone: readText(source['time_zone']),
  );
}