Map<String, dynamic> toJson() => { "image": image, "landmarks": landmarks?.toJson(), "offsets": offsets?.toJson(), "type": type, };