AnnotateFileResponse.fromJson constructor

AnnotateFileResponse.fromJson(
  1. Map json_
)

Implementation

AnnotateFileResponse.fromJson(core.Map json_)
    : this(
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        inputConfig: json_.containsKey('inputConfig')
            ? InputConfig.fromJson(
                json_['inputConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        responses: json_.containsKey('responses')
            ? (json_['responses'] as core.List)
                .map((value) => AnnotateImageResponse.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totalPages: json_.containsKey('totalPages')
            ? json_['totalPages'] as core.int
            : null,
      );