MessageVideo.fromJson constructor

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

Parse from a json

Implementation

factory MessageVideo.fromJson(Map<String, dynamic> json) => MessageVideo(
      video: Video.fromJson(json['video']),
      caption: FormattedText.fromJson(json['caption']),
      hasSpoiler: json['has_spoiler'],
      isSecret: json['is_secret'],
    );