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