fromMap static method

_d fromMap(
  1. _5 r
)

Implementation

static _d fromMap(_5 r){_;_5 m=r.$nn;return _d(messages: m.$c(_S[0])? (m[_S[0]] as _16).$m((e)=> _1.a<_n>(e,(m)=>$Message.fromMap(m))!).$l:throw __x(_S[6],_S[0]),tools: m.$c(_S[1]) ?  (m[_S[1]] as _16).$m((e)=> _0.da(e, _17) as _17).$l : _V[0],model: m.$c(_S[2])? _1.a<_e>(m[_S[2]],(m)=>$ChatModel.fromMap(m))!:throw __x(_S[6],_S[2]),systemPrompt: m.$c(_S[3]) ?  _0.da(m[_S[3]], _7) as _7? : null,user: m.$c(_S[4]) ?  _0.da(m[_S[4]], _7) as _7? : null,responseFormat: m.$c(_S[5]) ?  _1.a<_t>(m[_S[5]],(m)=>$ToolSchema.fromMap(m)) : null,);}