GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson constructor

GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson(
  1. Map json_
)

Implementation

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