fromMap static method

_g fromMap(
  1. _1 r
)

Implementation

static _g fromMap(_1 r){_;_1 m=r.$nn;return _g(id: m.$c('id')? _0.da(m['id'], _3) as _3:(throw _z('${_S[29]}$m.')),displayName: m.$c(_S[25]) ?  _0.da(m[_S[25]], _3) as _3? : null,cost: m.$c(_S[26])?$ChatModelCost.fromMap((m[_S[26]]) as _1):(throw _z('${_S[30]}$m.')),capabilities: m.$c(_S[27])?$ChatModelCapabilities.fromMap((m[_S[27]]) as _1):(throw _z('${_S[31]}$m.')),deprecated: m.$c(_S[28]) ?  _0.da(m[_S[28]], _w) as _w : _V[2],);}