Photo.fromJson constructor

Photo.fromJson(
  1. Map<String, dynamic> json
)

Creates a Photo from JSON data.

Implementation

factory Photo.fromJson(Map<String, dynamic> json) {
  return Photo(
    height: json["height"],
    htmlAttributions: List<String>.from(json["html_attributions"]),
    photoReference: json["photo_reference"],
    width: json["width"],
  );
}