MessageExtendedMediaVideo.fromJson constructor

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

Parses a MessageExtendedMediaVideo from TDLib JSON.

Implementation

factory MessageExtendedMediaVideo.fromJson(Map<String, dynamic> json) =>
    MessageExtendedMediaVideo(
      video: _readObject(json['video'], Video.fromJson),
      caption: _readObject(json['caption'], FormattedText.fromJson),
    );