Map<String, dynamic> toJson() { return <String, dynamic>{ if (author != null) r'author': author, if (place != null) r'place': place, }; }