ChatPhotos.fromJson constructor

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

Parses a ChatPhotos from TDLib JSON.

Implementation

factory ChatPhotos.fromJson(Map<String, dynamic> json) => ChatPhotos(
      totalCount: _readInt(json['total_count']),
      photos: _readList<ChatPhoto>(
          json['photos'], (e) => _readObject(e, ChatPhoto.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );