toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'start'] = start!.toUtc().toIso8601String();
json[r'stop'] = stop!.toUtc().toIso8601String();
if (predicate != null) {
json[r'predicate'] = predicate;
}
return json;
}