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