create static method

CreateVoice create({
  1. String? special_type,
  2. String? text,
  3. String? exec_path,
  4. String? model_path,
  5. String? output_file,
  6. int? speaker_id,
})
override

return original data json

Implementation

static CreateVoice create({
  String? special_type,
  String? text,
  String? exec_path,
  String? model_path,
  String? output_file,
  int? speaker_id,
}) {
  CreateVoice createVoice = CreateVoice({
    "@type": special_type,
    "text": text,
    "exec_path": exec_path,
    "model_path": model_path,
    "output_file": output_file,
    "speaker_id": speaker_id,
  });

  return createVoice;
}