GoogleCloudDocumentaiV1DocumentRevision.fromJson constructor

GoogleCloudDocumentaiV1DocumentRevision.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentRevision.fromJson(core.Map json_)
    : this(
        agent:
            json_.containsKey('agent') ? json_['agent'] as core.String : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        humanReview: json_.containsKey('humanReview')
            ? GoogleCloudDocumentaiV1DocumentRevisionHumanReview.fromJson(
                json_['humanReview'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        parent: json_.containsKey('parent')
            ? (json_['parent'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        parentIds: json_.containsKey('parentIds')
            ? (json_['parentIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        processor: json_.containsKey('processor')
            ? json_['processor'] as core.String
            : null,
      );