toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    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,
    if (name != null) 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(),
  };
}