fromMap static method

_y fromMap(
  1. _5 r
)

Implementation

static _y fromMap(_5 r){_;_5 m=r.$nn;return _y(id: m.$c('id')? _0.da(m['id'], _7) as _7:throw __x(_S[74],'id'),context_length: m.$c(_S[70]) ?  _0.da(m[_S[70]], _9) as _9 : _V[9],architecture: m.$c(_S[71])? _1.a<_z>(m[_S[71]],(m)=>$NagaArchitecture.fromMap(m))!:throw __x(_S[74],_S[71]),supported_parameters: m.$c(_S[72]) ?  (m[_S[72]] as _16).$m((e)=> _0.da(e, _7) as _7).$l : _V[10],pricing: m.$c(_S[73]) ?  _1.a<_10>(m[_S[73]],(m)=>$NagaPricing.fromMap(m))! : _V[11],);}