MessageAudio.fromJson constructor

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

Parse from a json

Implementation

factory MessageAudio.fromJson(Map<String, dynamic> json) => MessageAudio(
  audio: Audio.fromJson(json['audio']),
  caption: FormattedText.fromJson(json['caption']),
);