GoogleCloudDocumentaiV1BatchProcessMetadata.fromJson constructor

GoogleCloudDocumentaiV1BatchProcessMetadata.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1BatchProcessMetadata.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        individualProcessStatuses: _json
                .containsKey('individualProcessStatuses')
            ? (_json['individualProcessStatuses'] as core.List)
                .map<GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus>(
                    (value) =>
                        GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        stateMessage: _json.containsKey('stateMessage')
            ? _json['stateMessage'] as core.String
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );