Text2Audio.fromJson constructor

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

Implementation

factory Text2Audio.fromJson(Map<String, dynamic> json) {
  return Text2Audio(
    key: json['key'] as String,
    webhook: json['webhook'] as String?,
    trackId: json['track_id'] as String?,
    prompt: json['prompt'] as String,
    initAudio: json['init_audio'],
    voiceId: json['voice_id'] as String?,
    language: json['language'] as String?,
    speed: (json['speed'] as num?)?.toDouble(),
    temp: (json['temp'] as num?)?.toDouble(),
    base64: json['base64'] as String?,
    stream: json['stream'] as bool?,
  );
}