toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['photoId'] = photoId;
data['sortIndex'] = sortIndex;
if (photo != null) {
data['photo'] = photo!.toJson();
}
return data;
}