GoogleCloudDocumentaiV1DocumentSchema.fromJson constructor

GoogleCloudDocumentaiV1DocumentSchema.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentSchema.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityTypes: json_.containsKey('entityTypes')
            ? (json_['entityTypes'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentSchemaEntityType.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? GoogleCloudDocumentaiV1DocumentSchemaMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
      );