ChatPhotos.fromJson constructor

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

Parse from a json

Implementation

factory ChatPhotos.fromJson(Map<String, dynamic> json) => ChatPhotos(
  totalCount: json['total_count'],
  photos: List<ChatPhoto>.from((json['photos'] ?? []).map((item) => ChatPhoto.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);