VideoFull.fromMap constructor
VideoFull.fromMap(
- Map<String, dynamic> map
)
Implementation
VideoFull.fromMap(Map<String, dynamic> map)
: type = map['type'] as String,
videoId = map['videoId'] as String,
name = map['name'] as String,
artist = ArtistBasic.fromMap(map['artist']),
duration = map['duration'] as int,
thumbnails = (map['thumbnails'] as List)
.map((item) => ThumbnailFull.fromMap(item))
.toList(),
unlisted = map['unlisted'] as bool,
familySafe = map['familySafe'] as bool,
paid = map['paid'] as bool,
tags = (map['tags'] as List).cast<String>();