GoogleCloudContentwarehouseV1CreateDocumentRequest.fromJson constructor

GoogleCloudContentwarehouseV1CreateDocumentRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1CreateDocumentRequest.fromJson(core.Map json_)
    : this(
        cloudAiDocumentOption: json_.containsKey('cloudAiDocumentOption')
            ? GoogleCloudContentwarehouseV1CloudAIDocumentOption.fromJson(
                json_['cloudAiDocumentOption']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createMask: json_.containsKey('createMask')
            ? json_['createMask'] as core.String
            : null,
        document: json_.containsKey('document')
            ? GoogleCloudContentwarehouseV1Document.fromJson(
                json_['document'] as core.Map<core.String, core.dynamic>)
            : null,
        policy: json_.containsKey('policy')
            ? GoogleIamV1Policy.fromJson(
                json_['policy'] as core.Map<core.String, core.dynamic>)
            : null,
        requestMetadata: json_.containsKey('requestMetadata')
            ? GoogleCloudContentwarehouseV1RequestMetadata.fromJson(
                json_['requestMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );