fromJson static method
Implementation
static AnimatedChatPhoto? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AnimatedChatPhoto(
length: (json['length'] as int?) ?? 0,
file: File.fromJson(tdMapFromJson(json['file'])),
mainFrameTimestamp: ((json['main_frame_timestamp'] as num?) ?? 0.0)
.toDouble(),
);
}