toJson method Null safety
Implementation
Map<String, dynamic> toJson() {
final localJson = json;
final result = localJson == null
? <String, dynamic>{}
: Map<String, dynamic>.of(localJson);
result['type'] = 'TimelineEvent';
return result;
}