fromMap static method
_h
fromMap(
- _1 r
Implementation
static _h fromMap(_1 r){_;_1 m=r.$nn;return _h(messages: m.$c(_S[32])? (m[_S[32]] as _x).$m((e)=>$Message.fromMap((e) as _1)).$l:(throw _z('${_S[38]}$m.')),tools: m.$c(_S[33]) ? (m[_S[33]] as _x).$m((e)=> _0.da(e, _11) as _11).$l : _V[3],model: m.$c(_S[34])?$ChatModel.fromMap((m[_S[34]]) as _1):(throw _z('${_S[39]}$m.')),systemPrompt: m.$c(_S[35]) ? _0.da(m[_S[35]], _3) as _3? : null,user: m.$c(_S[36]) ? _0.da(m[_S[36]], _3) as _3? : null,responseFormat: m.$c(_S[37]) ? $ToolSchema.fromMap((m[_S[37]]) as _1) : null,);}