GetAppValidationConfigurationResponse.fromJson constructor

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

Implementation

factory GetAppValidationConfigurationResponse.fromJson(
    Map<String, dynamic> json) {
  return GetAppValidationConfigurationResponse(
    appValidationConfigurations: (json['appValidationConfigurations']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            AppValidationConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
    serverGroupValidationConfigurations:
        (json['serverGroupValidationConfigurations'] as List?)
            ?.whereNotNull()
            .map((e) => ServerGroupValidationConfiguration.fromJson(
                e as Map<String, dynamic>))
            .toList(),
  );
}