toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> rst = {};
rst['beginShift'] = beginShift;
rst['endShift'] = endShift;
rst["control"] = control.toJson();
rst["sequences"] =
sequences.map((key, value) => MapEntry(key, value.toJson()));
return rst;
}