decode static method

MediaItem decode(
  1. Object result
)

Implementation

static MediaItem decode(Object result) {
  result as List<Object?>;
  return MediaItem(
    url: result[0] as String?,
    mimeType: result[1] as String?,
    metadata: result[2] != null
        ? MediaMetadata.decode(result[2]! as List<Object?>)
        : null,
    isLive: result[3] as bool?,
    playbackStartPositionMs: result[4] as double?,
    lastKnownAudioLanguage: result[5] as String?,
    lastKnownSubtitleLanguage: result[6] as String?,
  );
}