toJson method

Map<String, dynamic> toJson()

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;
}