VideoDetailed.fromMap constructor

VideoDetailed.fromMap(
  1. Map<String, dynamic> map
)

Implementation

VideoDetailed.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();