VoiceNote.fromJson constructor

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

Parse from a json

Implementation

factory VoiceNote.fromJson(Map<String, dynamic> json) => VoiceNote(
  duration: json['duration'],
  waveform: json['waveform'],
  mimeType: json['mime_type'],
  voice: File.fromJson(json['voice']),
);