/**
 * 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' ; import { Mora , MoraFromJSON , MoraFromJSONTyped , MoraToJSON , } from './' ; export interface export interface AccentPhrase { type { Array < Mora > } memberof moras : Array < Mora > ; type { number } memberof accent : number ; type { Mora } memberof pauseMora ? : Mora | null ; } export function AccentPhraseFromJSON ( json ) { return AccentPhraseFromJSONTyped ( json , false ) ; } export function AccentPhraseFromJSONTyped ( json , ignoreDiscriminator ) { if ( ( json === undefined ) || ( json === null ) ) { return json ; } return { 'moras' : ( ( json [ 'moras' ] as Array < any > ) . map ( MoraFromJSON ) ) , 'accent' : json [ 'accent' ] , 'pauseMora' : ! exists ( json , 'pause_mora' ) ? undefined : MoraFromJSON ( json [ 'pause_mora' ] ) , } ; } export function AccentPhraseToJSON ( value ? ) { if ( value === undefined ) { return undefined ; } if ( value === null ) { return null ; } return { 'moras' : ( ( value . moras as Array < any > ) . map ( MoraToJSON ) ) , 'accent' : value . accent , 'pause_mora' : MoraToJSON ( value . pauseMora ) , } ; }