fromMap static method

_m fromMap(
  1. _1 r
)

Implementation

static _m fromMap(_1 r){_;_1 m=r.$nn;return _m(tools: m.$c(_S[33])? _0.da(m[_S[33]], _w) as _w:(throw _z('${_S[69]}$m.')),ultraCompatibleMode: m.$c(_S[59])? _0.da(m[_S[59]], _w) as _w:(throw _z('${_S[70]}$m.')),systemMode: m.$c(_S[60])?_0.e(ChatModelSystemMode.values, m[_S[60]]) as ChatModelSystemMode:(throw _z('${_S[71]}$m.')),contextWindow: m.$c(_S[61])? _0.da(m[_S[61]], _5) as _5:(throw _z('${_S[72]}$m.')),maxTokenOutput: m.$c(_S[62])? _0.da(m[_S[62]], _5) as _5:(throw _z('${_S[73]}$m.')),inputModalities: m.$c(_S[63])? (m[_S[63]] as _x).$m((e)=>_0.e(Modality.values, e) as Modality).$l:(throw _z('${_S[74]}$m.')),outputModalities: m.$c(_S[64])? (m[_S[64]] as _x).$m((e)=>_0.e(Modality.values, e) as Modality).$l:(throw _z('${_S[75]}$m.')),reasoning: m.$c(_S[65])? _0.da(m[_S[65]], _w) as _w:(throw _z('${_S[76]}$m.')),structuredOutput: m.$c(_S[66])? _0.da(m[_S[66]], _w) as _w:(throw _z('${_S[77]}$m.')),streaming: m.$c(_S[67])? _0.da(m[_S[67]], _w) as _w:(throw _z('${_S[78]}$m.')),seesToolMessages: m.$c(_S[68])? _0.da(m[_S[68]], _w) as _w:(throw _z('${_S[79]}$m.')),);}