AsyncBatchAnnotateFilesRequest.fromJson constructor

AsyncBatchAnnotateFilesRequest.fromJson(
  1. Map json_
)

Implementation

AsyncBatchAnnotateFilesRequest.fromJson(core.Map json_)
    : this(
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        requests: json_.containsKey('requests')
            ? (json_['requests'] as core.List)
                .map((value) => AsyncAnnotateFileRequest.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );