toJson method
Implementation
Map<String, dynamic> toJson() {
final stateName = this.stateName;
final timers = this.timers;
final variables = this.variables;
return {
'stateName': stateName,
'timers': timers,
'variables': variables,
};
}