toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
      "imageIndex": imageIndex,
      "image": image.toJson(),
      "faceIndex": faceIndex,
      "face": face?.toJson(),
    }.clearNulls();@visibleForTesting
Map<String, dynamic> toJson() => {
      "imageIndex": imageIndex,
      "image": image.toJson(),
      "faceIndex": faceIndex,
      "face": face?.toJson(),
    }.clearNulls();