GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson constructor

GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations
                .fromJson(json_['annotations']
                    as core.Map<core.String, core.dynamic>)
            : null,
        arrayItems: json_.containsKey('arrayItems')
            ? GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson(
                json_['arrayItems'] as core.Map<core.String, core.dynamic>)
            : null,
        constraints: json_.containsKey('constraints')
            ? GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
                .fromJson(json_['constraints']
                    as core.Map<core.String, core.dynamic>)
            : null,
        enumValues: json_.containsKey('enumValues')
            ? (json_['enumValues'] as core.List)
                .map((value) =>
                    GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        index: json_.containsKey('index') ? json_['index'] as core.int : null,
        mapItems: json_.containsKey('mapItems')
            ? GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson(
                json_['mapItems'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        recordFields: json_.containsKey('recordFields')
            ? (json_['recordFields'] as core.List)
                .map((value) =>
                    GoogleCloudDataplexV1AspectTypeMetadataTemplate.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        typeId: json_.containsKey('typeId')
            ? json_['typeId'] as core.String
            : null,
        typeRef: json_.containsKey('typeRef')
            ? json_['typeRef'] as core.String
            : null,
      );