copyWith method

_t copyWith({
  1. _3? id,
  2. _3? canonical_slug,
  3. _3? name,
  4. _5? created,
  5. _5? deltaCreated,
  6. _5? context_length,
  7. _5? deltaContext_length,
  8. _u? architecture,
  9. _2? supported_parameters,
  10. _w resetSupported_parameters = _F,
  11. _2? appendSupported_parameters,
  12. _2? removeSupported_parameters,
  13. _v? pricing,
  14. _w resetPricing = _F,
})

Implementation

_t copyWith({_3? id,_3? canonical_slug,_3? name,_5? created,_5? deltaCreated,_5? context_length,_5? deltaContext_length,_u? architecture,_2? supported_parameters,_w resetSupported_parameters=_F,_2? appendSupported_parameters,_2? removeSupported_parameters,_v? pricing,_w resetPricing=_F,})=>_t(id: id??_H.id,canonical_slug: canonical_slug??_H.canonical_slug,name: name??_H.name,created: deltaCreated!=null?(created??_H.created)+deltaCreated:created??_H.created,context_length: deltaContext_length!=null?(context_length??_H.context_length)+deltaContext_length:context_length??_H.context_length,architecture: architecture??_H.architecture,supported_parameters: ((resetSupported_parameters?_V[9]:(supported_parameters??_H.supported_parameters)) as _2).$u(appendSupported_parameters,removeSupported_parameters),pricing: resetPricing?_V[12]:(pricing??_H.pricing),);