AvailableWorkflowTriggers.fromJson constructor

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

Implementation

factory AvailableWorkflowTriggers.fromJson(Map<String, Object?> json) {
  return AvailableWorkflowTriggers(
    availableTypes: (json[r'availableTypes'] as List<Object?>?)
            ?.map((i) => AvailableWorkflowTriggerTypes.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    ruleKey: json[r'ruleKey'] as String? ?? '',
  );
}