copyWith method

_12 copyWith({
  1. _7? id,
  2. _7? canonical_slug,
  3. _7? name,
  4. _9? created,
  5. _9? deltaCreated,
  6. _9? context_length,
  7. _9? deltaContext_length,
  8. _13? architecture,
  9. _6? supported_parameters,
  10. _19 resetSupported_parameters = _F,
  11. _6? appendSupported_parameters,
  12. _6? removeSupported_parameters,
  13. _14? pricing,
  14. _19 resetPricing = _F,
})

Implementation

_12 copyWith({_7? id,_7? canonical_slug,_7? name,_9? created,_9? deltaCreated,_9? context_length,_9? deltaContext_length,_13? architecture,_6? supported_parameters,_19 resetSupported_parameters=_F,_6? appendSupported_parameters,_6? removeSupported_parameters,_14? pricing,_19 resetPricing=_F,})=>_12(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 _6).$u(appendSupported_parameters,removeSupported_parameters),pricing: resetPricing?_V[12]:(pricing??_H.pricing),);