toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (links != null) r'_links': links,
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (description != null) r'description': description,
if (end != null) r'end': end,
if (id != null) r'id': id,
r'name': name,
if (start != null) r'start': start,
if (states != null) r'states': states,
if (transitions != null) r'transitions': transitions,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
};
}