ValidateResourcePolicyResponse.fromJson constructor

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

Implementation

factory ValidateResourcePolicyResponse.fromJson(Map<String, dynamic> json) {
  return ValidateResourcePolicyResponse(
    policyValidationPassed: json['PolicyValidationPassed'] as bool?,
    validationErrors: (json['ValidationErrors'] as List?)
        ?.whereNotNull()
        .map((e) => ValidationErrorsEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}