ServerGroupValidationConfiguration.fromJson constructor

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

Implementation

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