AttributeDefinition.fromJson constructor

AttributeDefinition.fromJson(
  1. Map json_
)

Implementation

AttributeDefinition.fromJson(core.Map json_)
    : this(
        allowedValues: json_.containsKey('allowedValues')
            ? (json_['allowedValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        consentDefaultValues: json_.containsKey('consentDefaultValues')
            ? (json_['consentDefaultValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dataMappingDefaultValue: json_.containsKey('dataMappingDefaultValue')
            ? json_['dataMappingDefaultValue'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );