toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

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