toMap method

Map<String, Object?> toMap()

Serializes variant metadata to a map using stable field names.

Implementation

Map<String, Object?> toMap() {
  return <String, Object?>{
    'uri': uri,
    'url': url,
    'bandwidth': bandwidth,
    'averageBandwidth': averageBandwidth,
    'width': width,
    'height': height,
    'codecs': codecs,
    'frameRate': frameRate,
    'audioGroup': audioGroup,
    'subtitlesGroup': subtitlesGroup,
    'closedCaptionsGroup': closedCaptionsGroup,
    'name': name,
  };
}