InputMessageVideoNote.fromJson constructor

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

Parses a InputMessageVideoNote from TDLib JSON.

Implementation

factory InputMessageVideoNote.fromJson(Map<String, dynamic> json) =>
    InputMessageVideoNote(
      videoNote: _readObject(json['video_note'], InputVideoNote.fromJson),
      selfDestructType: _readOptional(
        json['self_destruct_type'],
        MessageSelfDestructType.fromJson,
      ),
    );