Voice.fromJson constructor
Implementation
factory Voice.fromJson(Map<String, dynamic> json) => Voice(
voiceId: json["voice_id"],
name: json["name"],
samples:
List<Sample>.from(json["samples"].map((x) => Sample.fromJson(x))),
category: json["category"],
labels: Labels.fromJson(json["labels"]),
previewUrl: json["preview_url"],
availableForTiers:
List<dynamic>.from(json["available_for_tiers"].map((x) => x)),
settings: json["settings"],
);