GoogleCastGenericMediaMetadataAndroid.fromMap constructor
Creates a generic media metadata instance from a map.
Implementation
factory GoogleCastGenericMediaMetadataAndroid.fromMap(
Map<String, dynamic> map) {
return GoogleCastGenericMediaMetadataAndroid(
title: map['title'],
subtitle: map['subtitle'],
images: map['images'] != null
? List<GoogleCastImage>.from(
map['images']?.map((x) => GoogleCastImage.fromMap(x)))
: null,
releaseDate: map['releaseDate'] != null
? DateTimeString.tryParse(map['releaseDate'] ?? '')
: null,
);
}