Constructor
protected
new VarietyModel(siteId)
VarietyModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Variety
Source
Members
codestring
The Variety Code
Type
-
string
Source
deletedboolean
Whether the Variety has been deleted
Type
-
boolean
Source
descriptionstring
The Variety Description
Type
-
string
Source
fruitSizesArray.<{size: string}>
An Array of Fruit Sizes Defined for this Variety
Type
-
Array.<{size: string}>
Source
idstring
The Variety ID
Type
-
string
Source
imagestring
The Variety Image Source
Type
-
string
Source
namestring
The Variety Name
Type
-
string
Source
siteIdnumber
The Site ID associated with this Variety
Type
-
number
Source
updateTimestampDate
When the Variety was last updated
Type
-
Date
Source
Methods
static
fromJSON(json, siteId) → {VarietyModel}
Create a new VarietyModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this Variety
Returns
-
VarietyModel