GoogleCastMediaTrack.fromMap constructor
GoogleCastMediaTrack.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCastMediaTrack.fromMap(Map<String, dynamic> map) {
return GoogleCastMediaTrack(
customData: Map<String, dynamic>.from(map['customData'] ?? {}),
language: map['language'] != null
? RFC5646_LANGUAGE.fromMap(map['language'])
: null,
name: map['name'],
subtype: map['subtype'] != null
? GoogleCastTextTrackStyleAndroid.fromMap(map['subtype'])
: null,
trackContentId: map['trackContentId'],
trackContentType: map['trackContentType'],
trackId: map['trackId']?.toInt() ?? 0,
type: GoogleCastTrackTypeAndroid.fromMap(map['type']),
);
}