GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson constructor

GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson(core.Map json_)
    : this(
        baseTypes: json_.containsKey('baseTypes')
            ? (json_['baseTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enumValues: json_.containsKey('enumValues')
            ? GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
                .fromJson(json_['enumValues']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );