WorkflowCreateValidateRequest.fromJson constructor

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

Implementation

factory WorkflowCreateValidateRequest.fromJson(Map<String, Object?> json) {
  return WorkflowCreateValidateRequest(
    payload: WorkflowCreateRequest.fromJson(
        json[r'payload'] as Map<String, Object?>? ?? const {}),
    validationOptions: json[r'validationOptions'] != null
        ? ValidationOptionsForCreate.fromJson(
            json[r'validationOptions']! as Map<String, Object?>)
        : null,
  );
}