ChapterDatum.fromMap constructor
ChapterDatum.fromMap(
- Map<String, dynamic> data
)
Implementation
factory ChapterDatum.fromMap(Map<String, dynamic> data) => ChapterDatum(
objectid: data['objectid'] as String?,
objecttype: data['objecttype'] as String?,
partnerid: data['partnerid'] as String?,
title: data['title'] as String?,
defaulttitle: data['defaulttitle'] as String?,
defaultgenre: data['defaultgenre'] as String?,
publishtime: data['publishtime'] as String?,
endtime: data['endtime'] as String?,
shortdescription: data['shortdescription'] as String?,
ratingtype: data['ratingtype'] as String?,
pgrating: data['pgrating'] as String?,
parentid: data['parentid'] as dynamic,
objectstatus: data['objectstatus'] as String?,
genre: data['genre'] as String?,
subgenre: data['subgenre'] as dynamic,
thumbnail: data['thumbnail'] as dynamic,
tags: data['tags'] as dynamic,
contentlanguage: data['contentlanguage'] as List<dynamic>?,
objectowner: data['objectowner'] as dynamic,
jobid: data['jobid'] as dynamic,
longdescription: data['longdescription'] as dynamic,
objecttag: data['objecttag'] as dynamic,
details: data['details'] as dynamic,
productionyear: data['productionyear'] as dynamic,
releasedate: data['releasedate'] as dynamic,
imdbid: data['imdbid'] as dynamic,
advisory: data['advisory'] as dynamic,
metacontent: data['metacontent'] as dynamic,
skilllevel: data['skilllevel'] as dynamic,
estimatedtime: data['estimatedtime'] as int?,
whatwelearn: data['whatwelearn'] as dynamic,
category: data['category'] as String?,
subcategory: data['subcategory'] as dynamic,
seriesid: data['seriesid'] as String?,
seriesname: data['seriesname'] as String?,
seasonid: data['seasonid'] as String?,
seasonname: data['seasonname'] as String?,
seasonnum: data['seasonnum'] as int?,
episodenum: data['episodenum'] as int?,
albumid: data['albumid'] as dynamic,
albumname: data['albumname'] as dynamic,
track: data['track'] as dynamic,
duration: data['duration'] as int?,
watchedDuration: data['watchedDuration'] as int?,
bandorartist: data['bandorartist'] as dynamic,
skip: (data['skip'] as List<dynamic>?)
?.map((e) => SkipModel.fromMap(e as Map<String, dynamic>))
.toList(),
resources: data['resources'] as List<dynamic>?,
contentdetails: (data['contentdetails'] as List<dynamic>?)
?.map((e) => Contentdetail.fromMap(e as Map<String, dynamic>))
.toList(),
poster: (data['poster'] as List<dynamic>?)
?.map((e) => Poster.fromMap(e as Map<String, dynamic>))
.toList(),
);