Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'chatLocation', if (extra != null) '@extra': extra, 'location': location, 'address': address }; }