Photo.fromJson constructor

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

Implementation

factory Photo.fromJson(Map<String, dynamic> json) {
  return Photo(
    photoReference: json['photo_reference'],
    height: json['height'],
    width: json['width'],
    htmlAttributions: json['html_attributions'] != null
        ? (json['html_attributions'] as List<dynamic>).cast<String>()
        : null,
  );
}