/**
 * 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 Mora { type { string } memberof text : string ; type { string } memberof consonant ? : string ; type { number } memberof consonantLength ? : number ; type { string } memberof vowel : string ; type { number } memberof vowelLength : number ; type { number } memberof pitch : number ; } export function MoraFromJSON ( json ) { return MoraFromJSONTyped ( json , false ) ; } export function MoraFromJSONTyped ( json , ignoreDiscriminator ) { if ( ( json === undefined ) || ( json === null ) ) { return json ; } return { 'text' : json [ 'text' ] , 'consonant' : ! exists ( json , 'consonant' ) ? undefined : json [ 'consonant' ] , 'consonantLength' : ! exists ( json , 'consonant_length' ) ? undefined : json [ 'consonant_length' ] , 'vowel' : json [ 'vowel' ] , 'vowelLength' : json [ 'vowel_length' ] , 'pitch' : json [ 'pitch' ] , } ; } export function MoraToJSON ( value ? ) { if ( value === undefined ) { return undefined ; } if ( value === null ) { return null ; } return { 'text' : value . text , 'consonant' : value . consonant , 'consonant_length' : value . consonantLength , 'vowel' : value . vowel , 'vowel_length' : value . vowelLength , 'pitch' : value . pitch , } ; }