Poster.fromMap constructor

Poster.fromMap(
  1. Map data
)

Implementation

factory Poster.fromMap(Map<dynamic, dynamic> data) => Poster(
      posterid: data['posterid'] as String?,
      title: data['title'] as String?,
      postertype: data['postertype'] as String?,
      quality: data['quality'] as String?,
      filelist: (data['filelist'] as List<dynamic>?)
          ?.map((e) => Filelist.fromMap(e as Map<dynamic, dynamic>))
          .toList(),
      pgrating: data['pgrating'] as String?,
      posterlanguage: data['posterlanguage'] as String?,
      postertags: data['postertags'] != null
          ? List<String>.from(data['postertags'])
          : null,
    );