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