encode method Null safety
Implementation
Object encode() {
final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
pigeonMap['shouldAutoplay'] = shouldAutoplay;
pigeonMap['currentTime'] = currentTime;
pigeonMap['mediaInfo'] = mediaInfo?.encode();
return pigeonMap;
}