toJson method
Implementation
Map<String, dynamic> toJson() => {
"current_index": current_index,
"target_index": target_index,
"stage": stage
}..removeWhere(
(dynamic key, dynamic value) => key == null || value == null);