Photo.fromJson constructor

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

Implementation

factory Photo.fromJson(Map<String, dynamic> json) => Photo(
      height: json["height"],
      htmlAttributions: json["html_attributions"] == null
          ? []
          : List<String>.from(json["html_attributions"]!.map((x) => x)),
      photoReference: json["photo_reference"],
      width: json["width"],
    );