toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'inlineQueryResultDocument',
if (extra != null) '@extra': extra,
'id': id,
'document': document,
'title': title,
'description': description
};
}