toJson method
to JSON mapper for string conversion
Implementation
Map<String, dynamic> toJson() {
return {
'x': this.x,
'y': this.y,
'width': this.width,
'height': this.height,
'yaw': this.yaw,
'pitch': this.pitch,
'roll': this.roll,
'leftEye': this.leftEye,
'data': this.data,
'rightEye': this.rightEye,
'quality': this.quality,
'faceTemplate': this.faceTemplate.toJson()
};
}