fromJson static method

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

Implementation

static InputMessageVideoNote? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputMessageVideoNote(
    videoNote: InputVideoNote.fromJson(tdMapFromJson(json['video_note'])),
    selfDestructType: MessageSelfDestructType.fromJson(
      tdMapFromJson(json['self_destruct_type']),
    ),
  );
}