UserProfilePhotos.fromJson constructor

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

Creates a UserProfilePhotos object from JSON object

Implementation

factory UserProfilePhotos.fromJson(Map<String, dynamic> json) {
  return UserProfilePhotos(
    totalCount: json['total_count'],
    photos: List<List<PhotoSize>>.from(
      json['photos'].map(
        (x) => List<PhotoSize>.from(x.map((x) => PhotoSize.fromJson(x))),
      ),
    ),
  );
}