AnnotateImageRequest.fromJson constructor

AnnotateImageRequest.fromJson(
  1. Map json_
)

Implementation

AnnotateImageRequest.fromJson(core.Map json_)
    : this(
        features: json_.containsKey('features')
            ? (json_['features'] as core.List)
                .map((value) => Feature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image: json_.containsKey('image')
            ? Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        imageContext: json_.containsKey('imageContext')
            ? ImageContext.fromJson(
                json_['imageContext'] as core.Map<core.String, core.dynamic>)
            : null,
      );