/**
 * 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 { StyleInfo , StyleInfoFromJSON , StyleInfoFromJSONTyped , StyleInfoToJSON , } from './' ; export interface export interface SpeakerInfo { type { string } memberof policy : string ; type { string } memberof portrait : string ; type { Array < StyleInfo > } memberof styleInfos : Array < StyleInfo > ; } export function SpeakerInfoFromJSON ( json ) { return SpeakerInfoFromJSONTyped ( json , false ) ; } export function SpeakerInfoFromJSONTyped ( json , ignoreDiscriminator ) { if ( ( json === undefined ) || ( json === null ) ) { return json ; } return { 'policy' : json [ 'policy' ] , 'portrait' : json [ 'portrait' ] , 'styleInfos' : ( ( json [ 'style_infos' ] as Array < any > ) . map ( StyleInfoFromJSON ) ) , } ; } export function SpeakerInfoToJSON ( value ? ) { if ( value === undefined ) { return undefined ; } if ( value === null ) { return null ; } return { 'policy' : value . policy , 'portrait' : value . portrait , 'style_infos' : ( ( value . styleInfos as Array < any > ) . map ( StyleInfoToJSON ) ) , } ; }