toJson method

Map<String, dynamic> toJson()

x , y ,faceWidth ,faceHeight contains integer values

Implementation

Map<String, dynamic> toJson() => {
      "x": x,
      "y": y,
      "faceWidth": faceWidth,
      "faceHeight": faceHeight,
    };