fromMap static method

Implementation

static SettingsGeneralSettingsSecurity? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return SettingsGeneralSettingsSecurity(
    enableForceSessionExpire: readText(source['enable_force_session_expire']),
    enableTwoFactorAuthentication:
        readText(source['enable_two_factor_authentication']),
    implementerLogin: readText(source['implementerLogin']),
    sessionExpireLimitHour: readText(source['session_expire_limit_hour']),
  );
}