AnnotateFileRequest.fromJson constructor
AnnotateFileRequest.fromJson(
- Map json_
Implementation
AnnotateFileRequest.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,
imageContext: json_.containsKey('imageContext')
? ImageContext.fromJson(
json_['imageContext'] as core.Map<core.String, core.dynamic>)
: null,
inputConfig: json_.containsKey('inputConfig')
? InputConfig.fromJson(
json_['inputConfig'] as core.Map<core.String, core.dynamic>)
: null,
pages: json_.containsKey('pages')
? (json_['pages'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
);