AttributeMetadata.fromJson constructor

AttributeMetadata.fromJson(
  1. Map json_
)

Implementation

AttributeMetadata.fromJson(core.Map json_)
    : this(
        deprecated: json_.containsKey('deprecated')
            ? json_['deprecated'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        groupDisplayName: json_.containsKey('groupDisplayName')
            ? json_['groupDisplayName'] as core.String
            : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        repeatable: json_.containsKey('repeatable')
            ? json_['repeatable'] as core.bool
            : null,
        valueMetadata: json_.containsKey('valueMetadata')
            ? (json_['valueMetadata'] as core.List)
                .map((value) => AttributeValueMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        valueType: json_.containsKey('valueType')
            ? json_['valueType'] as core.String
            : null,
      );