GoogleCloudDocumentaiV1Processor.fromJson constructor

GoogleCloudDocumentaiV1Processor.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1Processor.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        defaultProcessorVersion: json_.containsKey('defaultProcessorVersion')
            ? json_['defaultProcessorVersion'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        processEndpoint: json_.containsKey('processEndpoint')
            ? json_['processEndpoint'] as core.String
            : null,
        processorVersionAliases: json_.containsKey('processorVersionAliases')
            ? (json_['processorVersionAliases'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1ProcessorVersionAlias.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );