ModuleDatum.fromMap constructor

ModuleDatum.fromMap(
  1. Map<String, dynamic> data
)

Implementation

factory ModuleDatum.fromMap(Map<String, dynamic> data) => ModuleDatum(
      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,
      seriesid: data['seriesid'] as String?,
      seriesname: data['seriesname'] as String?,
      seasonnum: data['seasonnum'] as int?,
      duration: data['duration'] as int?,
      episodecount: data['episodecount'] as int?,
      resources: data['resources'] as List<dynamic>?,
    );