InputMessageAudio.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageAudio.fromJson(Map<String, dynamic> json) =>
    InputMessageAudio(
      audio: InputFile.fromJson(json['audio']),
      albumCoverThumbnail: json['album_cover_thumbnail'] == null
          ? null
          : InputThumbnail.fromJson(json['album_cover_thumbnail']),
      duration: json['duration'],
      title: json['title'],
      performer: json['performer'],
      caption: json['caption'] == null
          ? null
          : FormattedText.fromJson(json['caption']),
    );