toJson method
Implementation
Map<String, dynamic> toJson() {
final timeoutAction = this.timeoutAction;
final timeoutDurationMinutes = this.timeoutDurationMinutes;
final allocationStrategy = this.allocationStrategy;
final blockDurationMinutes = this.blockDurationMinutes;
return {
'TimeoutAction': timeoutAction.toValue(),
'TimeoutDurationMinutes': timeoutDurationMinutes,
if (allocationStrategy != null)
'AllocationStrategy': allocationStrategy.toValue(),
if (blockDurationMinutes != null)
'BlockDurationMinutes': blockDurationMinutes,
};
}