GoogleCastImage.fromMap constructor
Creates a GoogleCastImage from a map representation.
Implementation
factory GoogleCastImage.fromMap(Map<String, dynamic> map) {
return GoogleCastImage(
url: Uri.parse(map['url']),
height: map['height']?.toInt(),
width: map['width']?.toInt(),
);
}