PropertyDefinition.fromJson constructor
PropertyDefinition.fromJson(
- Map json_
Implementation
PropertyDefinition.fromJson(core.Map json_)
: this(
booleanPropertyOptions: json_.containsKey('booleanPropertyOptions')
? BooleanPropertyOptions.fromJson(json_['booleanPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
datePropertyOptions: json_.containsKey('datePropertyOptions')
? DatePropertyOptions.fromJson(json_['datePropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
displayOptions: json_.containsKey('displayOptions')
? PropertyDisplayOptions.fromJson(json_['displayOptions']
as core.Map<core.String, core.dynamic>)
: null,
doublePropertyOptions: json_.containsKey('doublePropertyOptions')
? DoublePropertyOptions.fromJson(json_['doublePropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
enumPropertyOptions: json_.containsKey('enumPropertyOptions')
? EnumPropertyOptions.fromJson(json_['enumPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
htmlPropertyOptions: json_.containsKey('htmlPropertyOptions')
? HtmlPropertyOptions.fromJson(json_['htmlPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
integerPropertyOptions: json_.containsKey('integerPropertyOptions')
? IntegerPropertyOptions.fromJson(json_['integerPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
isFacetable: json_.containsKey('isFacetable')
? json_['isFacetable'] as core.bool
: null,
isRepeatable: json_.containsKey('isRepeatable')
? json_['isRepeatable'] as core.bool
: null,
isReturnable: json_.containsKey('isReturnable')
? json_['isReturnable'] as core.bool
: null,
isSortable: json_.containsKey('isSortable')
? json_['isSortable'] as core.bool
: null,
isSuggestable: json_.containsKey('isSuggestable')
? json_['isSuggestable'] as core.bool
: null,
isWildcardSearchable: json_.containsKey('isWildcardSearchable')
? json_['isWildcardSearchable'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
objectPropertyOptions: json_.containsKey('objectPropertyOptions')
? ObjectPropertyOptions.fromJson(json_['objectPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
textPropertyOptions: json_.containsKey('textPropertyOptions')
? TextPropertyOptions.fromJson(json_['textPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
timestampPropertyOptions:
json_.containsKey('timestampPropertyOptions')
? TimestampPropertyOptions.fromJson(
json_['timestampPropertyOptions']
as core.Map<core.String, core.dynamic>)
: null,
);