@visibleForTesting Map<String, dynamic> toJson() => { "image": _imageToBase64(image), "light": light.value, "pageIndex": pageIndex, };