ImageContext.fromJson constructor
ImageContext.fromJson(
- Map json_
Implementation
ImageContext.fromJson(core.Map json_)
: this(
cropHintsParams: json_.containsKey('cropHintsParams')
? CropHintsParams.fromJson(json_['cropHintsParams']
as core.Map<core.String, core.dynamic>)
: null,
languageHints: json_.containsKey('languageHints')
? (json_['languageHints'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
latLongRect: json_.containsKey('latLongRect')
? LatLongRect.fromJson(
json_['latLongRect'] as core.Map<core.String, core.dynamic>)
: null,
productSearchParams: json_.containsKey('productSearchParams')
? ProductSearchParams.fromJson(json_['productSearchParams']
as core.Map<core.String, core.dynamic>)
: null,
textDetectionParams: json_.containsKey('textDetectionParams')
? TextDetectionParams.fromJson(json_['textDetectionParams']
as core.Map<core.String, core.dynamic>)
: null,
webDetectionParams: json_.containsKey('webDetectionParams')
? WebDetectionParams.fromJson(json_['webDetectionParams']
as core.Map<core.String, core.dynamic>)
: null,
);