fromJson static method
Implementation
static BotMediaPreviews? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BotMediaPreviews(
previews: List<BotMediaPreview>.from(
tdListFromJson(json['previews'])
.map((item) => BotMediaPreview.fromJson(tdMapFromJson(item)))
.whereType<BotMediaPreview>(),
),
);
}