Map<String, dynamic> toMap() { return <String, dynamic>{ 'comment': comment, 'source': source, 'target': target, 'type': type, }; }