fromJson static method
Implementation
static ChatPhotos? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatPhotos(
totalCount: (json['total_count'] as int?) ?? 0,
photos: List<ChatPhoto>.from(
tdListFromJson(json['photos'])
.map((item) => ChatPhoto.fromJson(tdMapFromJson(item)))
.whereType<ChatPhoto>(),
),
);
}