GoogleCloudDocumentaiV1beta3DocumentProvenance.fromJson constructor

GoogleCloudDocumentaiV1beta3DocumentProvenance.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta3DocumentProvenance.fromJson(core.Map _json)
    : this(
        id: _json.containsKey('id') ? _json['id'] as core.int : null,
        parents: _json.containsKey('parents')
            ? (_json['parents'] as core.List)
                .map<GoogleCloudDocumentaiV1beta3DocumentProvenanceParent>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        revision: _json.containsKey('revision')
            ? _json['revision'] as core.int
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );