encode method

Object encode()

Implementation

Object encode() {
  final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
  pigeonMap['contentId'] = contentId;
  pigeonMap['streamType'] = streamType?.index;
  pigeonMap['contentType'] = contentType;
  pigeonMap['mediaMetadata'] = mediaMetadata?.encode();
  pigeonMap['mediaTracks'] = mediaTracks;
  pigeonMap['streamDuration'] = streamDuration;
  pigeonMap['adBreakClips'] = adBreakClips;
  pigeonMap['customDataAsJson'] = customDataAsJson;
  return pigeonMap;
}