FaceAnnotation.fromJson constructor
FaceAnnotation.fromJson(
- Map json_
Implementation
FaceAnnotation.fromJson(core.Map json_)
: this(
angerLikelihood: json_.containsKey('angerLikelihood')
? json_['angerLikelihood'] as core.String
: null,
blurredLikelihood: json_.containsKey('blurredLikelihood')
? json_['blurredLikelihood'] as core.String
: null,
boundingPoly: json_.containsKey('boundingPoly')
? BoundingPoly.fromJson(
json_['boundingPoly'] as core.Map<core.String, core.dynamic>)
: null,
detectionConfidence: json_.containsKey('detectionConfidence')
? (json_['detectionConfidence'] as core.num).toDouble()
: null,
fdBoundingPoly: json_.containsKey('fdBoundingPoly')
? BoundingPoly.fromJson(json_['fdBoundingPoly']
as core.Map<core.String, core.dynamic>)
: null,
headwearLikelihood: json_.containsKey('headwearLikelihood')
? json_['headwearLikelihood'] as core.String
: null,
joyLikelihood: json_.containsKey('joyLikelihood')
? json_['joyLikelihood'] as core.String
: null,
landmarkingConfidence: json_.containsKey('landmarkingConfidence')
? (json_['landmarkingConfidence'] as core.num).toDouble()
: null,
landmarks: json_.containsKey('landmarks')
? (json_['landmarks'] as core.List)
.map((value) => Landmark.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
panAngle: json_.containsKey('panAngle')
? (json_['panAngle'] as core.num).toDouble()
: null,
rollAngle: json_.containsKey('rollAngle')
? (json_['rollAngle'] as core.num).toDouble()
: null,
sorrowLikelihood: json_.containsKey('sorrowLikelihood')
? json_['sorrowLikelihood'] as core.String
: null,
surpriseLikelihood: json_.containsKey('surpriseLikelihood')
? json_['surpriseLikelihood'] as core.String
: null,
tiltAngle: json_.containsKey('tiltAngle')
? (json_['tiltAngle'] as core.num).toDouble()
: null,
underExposedLikelihood: json_.containsKey('underExposedLikelihood')
? json_['underExposedLikelihood'] as core.String
: null,
);