ValidatePipelineDefinitionOutput.fromJson constructor

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

Implementation

factory ValidatePipelineDefinitionOutput.fromJson(Map<String, dynamic> json) {
  return ValidatePipelineDefinitionOutput(
    errored: json['errored'] as bool,
    validationErrors: (json['validationErrors'] as List?)
        ?.whereNotNull()
        .map((e) => ValidationError.fromJson(e as Map<String, dynamic>))
        .toList(),
    validationWarnings: (json['validationWarnings'] as List?)
        ?.whereNotNull()
        .map((e) => ValidationWarning.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}