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