fromMap static method

_12 fromMap(
  1. _5 r
)

Implementation

static _12 fromMap(_5 r){_;_5 m=r.$nn;return _12(id: m.$c('id')? _0.da(m['id'], _7) as _7:throw __x(_S[87],'id'),canonical_slug: m.$c(_S[85])? _0.da(m[_S[85]], _7) as _7:throw __x(_S[87],_S[85]),name: m.$c(_S[41])? _0.da(m[_S[41]], _7) as _7:throw __x(_S[87],_S[41]),created: m.$c(_S[86])? _0.da(m[_S[86]], _9) as _9:throw __x(_S[87],_S[86]),context_length: m.$c(_S[70])? _0.da(m[_S[70]], _9) as _9:throw __x(_S[87],_S[70]),architecture: m.$c(_S[71])? _1.a<_13>(m[_S[71]],(m)=>$OpenRouterArchitecture.fromMap(m))!:throw __x(_S[87],_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<_14>(m[_S[73]],(m)=>$OpenRouterPricing.fromMap(m))! : _V[13],);}