WorkflowValidationError.fromJson constructor

WorkflowValidationError.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory WorkflowValidationError.fromJson(Map<String, Object?> json) {
  return WorkflowValidationError(
    code: json[r'code'] as String?,
    elementReference: json[r'elementReference'] != null
        ? WorkflowElementReference.fromJson(
            json[r'elementReference']! as Map<String, Object?>)
        : null,
    level: json[r'level'] != null
        ? WorkflowValidationErrorLevel.fromValue(json[r'level']! as String)
        : null,
    message: json[r'message'] as String?,
    type: json[r'type'] != null
        ? WorkflowValidationErrorType.fromValue(json[r'type']! as String)
        : null,
  );
}