toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (variables != null) 'variables': variables,
if (credentials != null) 'credentials': credentials!.map((x) => x.toJson()).toList(),
if (workflows != null) 'workflows': workflows!.map((x) => x.toJson()).toList(),
if (tags != null) 'tags': tags!.toJson(),
};
}