EnvironmentConfig.fromJson constructor

EnvironmentConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EnvironmentConfig.fromJson(Map<String, dynamic> json) {
  return EnvironmentConfig(
    environment: _fromString(json['environment']),
    name: json['name'] as String,
    api: json['api'] != null ? ApiConfig.fromJson(json['api']) : null,
    ciCd: json['ciCd'] != null ? CiCdConfig.fromJson(json['ciCd']) : null,
    features: json['features'] != null
        ? FeaturesConfig.fromJson(json['features'])
        : null,
    logging: json['logging'] != null
        ? LoggingConfig.fromJson(json['logging'])
        : null,
    security: json['security'] != null
        ? SecurityConfig.fromJson(json['security'])
        : null,
    analytics: json['analytics'] != null
        ? AnalyticsConfig.fromJson(json['analytics'])
        : null,
    localization: json['localization'] != null
        ? LocalizationConfig.fromJson(json['localization'])
        : null,
    theming: json['theming'] != null
        ? ThemingConfig.fromJson(json['theming'])
        : null,
    thirdPartyServices: json['thirdPartyServices'] != null
        ? ThirdPartyServicesConfig.fromJson(json['thirdPartyServices'])
        : null,
    scheduledTasks: json['scheduledTasks'] != null
        ? ScheduledTasksConfig.fromJson(json['scheduledTasks'])
        : null,
  );
}