fromJson static method

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

Creates a object from a json

Implementation

static Voice fromJson(Map<String, dynamic> json) {
  return Voice(
    fileId: json['file_id']!,
    fileUniqueId: json['file_unique_id']!,
    duration: json['duration']!,
    mimeType: json['mime_type'],
    fileSize: json['file_size'],
  );
}