toJson method
Implementation
String toJson() {
return const {
Session.cont: 'continue',
Session.start: 'start',
Session.manual: 'manual',
Session.none: 'none',
}[this]!;
}
String toJson() {
return const {
Session.cont: 'continue',
Session.start: 'start',
Session.manual: 'manual',
Session.none: 'none',
}[this]!;
}