AnimatedChatPhoto.fromJson constructor

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

Parses a AnimatedChatPhoto from TDLib JSON.

Implementation

factory AnimatedChatPhoto.fromJson(Map<String, dynamic> json) =>
    AnimatedChatPhoto(
      length: _readInt(json['length']),
      file: _readObject(json['file'], File.fromJson),
      mainFrameTimestamp: _readDouble(json['main_frame_timestamp']),
    );