copyWith method
_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,
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),);