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