encode method
Implementation
Object encode() {
final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
pigeonMap['playerState'] = playerState?.index;
pigeonMap['isPlayingAd'] = isPlayingAd;
pigeonMap['mediaInfo'] = mediaInfo?.encode();
pigeonMap['adBreakStatus'] = adBreakStatus?.encode();
return pigeonMap;
}