toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chatEventLocationChanged',
if (extra != null) '@extra': extra,
'old_location': old_location,
'new_location': new_location
};
}