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