toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['path'] = path;
  if (imageList != null) {
    data['imageList'] = imageList?.map((v) => v?.toJson()).toList();
  }
  if (nextElem != null) {
    data['nextElem'] = nextElem;
  }
  return data;
}