DeprecatedWorkflow.fromJson constructor

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

Implementation

factory DeprecatedWorkflow.fromJson(Map<String, Object?> json) {
  return DeprecatedWorkflow(
    default$: json[r'default'] as bool? ?? false,
    description: json[r'description'] as String?,
    lastModifiedDate: json[r'lastModifiedDate'] as String?,
    lastModifiedUser: json[r'lastModifiedUser'] as String?,
    lastModifiedUserAccountId: json[r'lastModifiedUserAccountId'] as String?,
    name: json[r'name'] as String?,
    scope: json[r'scope'] != null
        ? Scope.fromJson(json[r'scope']! as Map<String, Object?>)
        : null,
    steps: (json[r'steps'] as num?)?.toInt(),
  );
}