VoiceInfo.fromJson constructor

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

Implementation

factory VoiceInfo.fromJson(Map<String, dynamic> json) => VoiceInfo(
      id: json['id'] as String,
      name: json['name'] as String,
      description: json['description'] as String?,
      category: json['category'] as String?,
      gender: json['gender'] as String?,
      accent: json['accent'] as String?,
      previewUrl: json['preview_url'] as String?,
    );