Map<String?, Object?> toJson() => { "id": id, "type": type.encode(), "audioTracks": audioTracks, "videoTracks": videoTracks, "label": label };