PropertyDefinition.fromJson constructor

PropertyDefinition.fromJson(
  1. 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_['isFacetable'] as core.bool?,
      isRepeatable: json_['isRepeatable'] as core.bool?,
      isReturnable: json_['isReturnable'] as core.bool?,
      isSortable: json_['isSortable'] as core.bool?,
      isSuggestable: json_['isSuggestable'] as core.bool?,
      isWildcardSearchable: json_['isWildcardSearchable'] as core.bool?,
      name: json_['name'] as core.String?,
      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,
    );