Documentation / @blazetrails/activemodel / Conversion
Variable: Conversion
Conversion: {
ClassMethods: {_toPartialPath: (this) =>string; };toKey: (this) =>unknown[] |null;toModel: <T>(this) =>T;toParam: (this) =>string|null;toPartialPath: (this) =>string; }
Defined in: packages/activemodel/lib/conversion.ts:18
Type Declaration
ClassMethods
ClassMethods: {
_toPartialPath: (this) =>string; }
ClassMethods._toPartialPath
_toPartialPath: (
this) =>string
Parameters
| Parameter | Type |
|---|---|
this | ConversionHost |
Returns
string
toKey
toKey: (
this) =>unknown[] |null
Parameters
| Parameter | Type |
|---|---|
this | object |
Returns
unknown[] | null
toModel
toModel: <
T>(this) =>T
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
this | T |
Returns
T
toParam
toParam: (
this) =>string|null
Parameters
| Parameter | Type |
|---|---|
this | ConversionRecord |
Returns
string | null
toPartialPath
toPartialPath: (
this) =>string
Parameters
| Parameter | Type |
|---|---|
this | object |
Returns
string