PlexMetadataType enum

The integer type tag used on every /library/metadata/{id} response.

type=1 movie, 2 show, 3 season, 4 episode, 5 trailer, 8 artist, 9 album, 10 track, 13 photoAlbum, 14 photo, 15 playlist, 18 collection.

Inheritance
Available extensions

Values

movie → const PlexMetadataType

Movie (type=1).

const PlexMetadataType(1, 'movie')
show → const PlexMetadataType

TV show / series root (type=2).

const PlexMetadataType(2, 'show')
season → const PlexMetadataType

Season under a show (type=3).

const PlexMetadataType(3, 'season')
episode → const PlexMetadataType

Episode under a season (type=4).

const PlexMetadataType(4, 'episode')
trailer → const PlexMetadataType

Trailer (type=5).

const PlexMetadataType(5, 'trailer')
artist → const PlexMetadataType

Music artist (type=8).

const PlexMetadataType(8, 'artist')
album → const PlexMetadataType

Music album (type=9).

const PlexMetadataType(9, 'album')
track → const PlexMetadataType

Music track (type=10).

const PlexMetadataType(10, 'track')
photoAlbum → const PlexMetadataType

Photo album (type=13).

The wire string photoalbum matches Plex's lowercase library/libtype token. Note that individual photo-album metadata items report their type as photo, so they resolve to photo via fromWire; use fromValue with 13 to obtain this variant explicitly.

const PlexMetadataType(13, 'photoalbum')
photo → const PlexMetadataType

Photo (type=14).

const PlexMetadataType(14, 'photo')
playlist → const PlexMetadataType

Playlist (type=15).

const PlexMetadataType(15, 'playlist')
collection → const PlexMetadataType

Collection (type=18).

const PlexMetadataType(18, 'collection')
unknown → const PlexMetadataType

Unrecognised or missing type — fallback used when the int / wire string doesn't match any known variant.

const PlexMetadataType(0, 'unknown')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
Numeric type tag as used in Plex JSON.
final
wire → String
Lowercase wire string Plex sometimes uses in place of the numeric value (e.g. track, episode).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromValue(int? value) → PlexMetadataType
Resolves a numeric type tag, returning unknown when null or unmatched.
fromWire(String? value) → PlexMetadataType
Resolves a wire string variant, returning unknown when null or unmatched.

Constants

values → const List<PlexMetadataType>
A constant List of the values in this enum, in order of their declaration.