CreateWorkflowTransitionDetails.fromJson constructor

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

Implementation

factory CreateWorkflowTransitionDetails.fromJson(Map<String, Object?> json) {
  return CreateWorkflowTransitionDetails(
    description: json[r'description'] as String?,
    from: (json[r'from'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    name: json[r'name'] as String? ?? '',
    properties: json[r'properties'] as Map<String, Object?>?,
    rules: json[r'rules'] != null
        ? CreateWorkflowTransitionRulesDetails.fromJson(
            json[r'rules']! as Map<String, Object?>)
        : null,
    screen: json[r'screen'] != null
        ? CreateWorkflowTransitionScreenDetails.fromJson(
            json[r'screen']! as Map<String, Object?>)
        : null,
    to: json[r'to'] as String? ?? '',
    type: CreateWorkflowTransitionDetailsType.fromValue(
        json[r'type'] as String? ?? ''),
  );
}