GoogleCastTvShowMediaMetadataAndroid.fromMap constructor

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

Implementation

factory GoogleCastTvShowMediaMetadataAndroid.fromMap(
    Map<String, dynamic> map) {
  return GoogleCastTvShowMediaMetadataAndroid(
    seriesTitle: map['seriesTitle'],
    season: map['season']?.toInt(),
    episode: map['episode']?.toInt(),
    images: map['images'] != null
        ? List<GoogleCastImage>.from(
            map['images']?.map((x) => GoogleCastImage.fromMap(x)))
        : null,
    originalAirDate: map['originalAirDate'] != null
        ? DateTimeString.tryParse(map['originalAirDate'])
        : null,
  );
}