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