/**
 * VOICEVOX ENGINE
 * VOICEVOXの音声合成エンジンです。
 *
 * The version of the OpenAPI document: 0.10.preview.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { exists , mapValues } from '../runtime' ; export interface export interface Preset { type { number } memberof id : number ; type { string } memberof name : string ; type { string } memberof speakerUuid : string ; type { number } memberof styleId : number ; type { number } memberof speedScale : number ; type { number } memberof pitchScale : number ; type { number } memberof intonationScale : number ; type { number } memberof volumeScale : number ; type { number } memberof prePhonemeLength : number ; type { number } memberof postPhonemeLength : number ; } export function PresetFromJSON ( json ) { return PresetFromJSONTyped ( json , false ) ; } export function PresetFromJSONTyped ( json , ignoreDiscriminator ) { if ( ( json === undefined ) || ( json === null ) ) { return json ; } return { 'id' : json [ 'id' ] , 'name' : json [ 'name' ] , 'speakerUuid' : json [ 'speaker_uuid' ] , 'styleId' : json [ 'style_id' ] , 'speedScale' : json [ 'speedScale' ] , 'pitchScale' : json [ 'pitchScale' ] , 'intonationScale' : json [ 'intonationScale' ] , 'volumeScale' : json [ 'volumeScale' ] , 'prePhonemeLength' : json [ 'prePhonemeLength' ] , 'postPhonemeLength' : json [ 'postPhonemeLength' ] , } ; } export function PresetToJSON ( value ? ) { if ( value === undefined ) { return undefined ; } if ( value === null ) { return null ; } return { 'id' : value . id , 'name' : value . name , 'speaker_uuid' : value . speakerUuid , 'style_id' : value . styleId , 'speedScale' : value . speedScale , 'pitchScale' : value . pitchScale , 'intonationScale' : value . intonationScale , 'volumeScale' : value . volumeScale , 'prePhonemeLength' : value . prePhonemeLength , 'postPhonemeLength' : value . postPhonemeLength , } ; }