toJson method
Implementation
Map<String, dynamic> toJson() {
final action = this.action;
final onExitCode = this.onExitCode;
final onReason = this.onReason;
final onStatusReason = this.onStatusReason;
return {
'action': action.toValue(),
if (onExitCode != null) 'onExitCode': onExitCode,
if (onReason != null) 'onReason': onReason,
if (onStatusReason != null) 'onStatusReason': onStatusReason,
};
}