GoogleCastImage.fromMap constructor

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

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(),
  );
}