DetailPhotos.fromJson constructor
Implementation
DetailPhotos.fromJson(Map<String, dynamic> json) {
if (json["height"] is int) height = json["height"];
if (json["html_attributions"] is List) {
htmlAttributions = json["html_attributions"] == null
? null
: List<String>.from(json["html_attributions"]);
}
if (json["photo_reference"] is String) {
photoReference = json["photo_reference"];
}
if (json["width"] is int) width = json["width"];
}