BatchGetWorkflowsResponse.fromJson constructor

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

Implementation

factory BatchGetWorkflowsResponse.fromJson(Map<String, dynamic> json) {
  return BatchGetWorkflowsResponse(
    missingWorkflows: (json['MissingWorkflows'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    workflows: (json['Workflows'] as List?)
        ?.whereNotNull()
        .map((e) => Workflow.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}