fetchModelFromItem

Function

Given an Item, fetch the data json and return an IModel

  • fetchModelFromItem(item: IItem, requestOptions: IRequestOptions) : Promise<IModel>

Parameters

Parameter Type Default Notes
item Required IItem
requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any

Function defined in common/src/models/index.ts:169