toJson method
Implementation
Map<String, dynamic> toJson() {
final instanceTerminationTimeout = this.instanceTerminationTimeout;
final instancesToProtect = this.instancesToProtect;
final instancesToTerminate = this.instancesToTerminate;
return {
if (instanceTerminationTimeout != null)
'InstanceTerminationTimeout': instanceTerminationTimeout,
if (instancesToProtect != null) 'InstancesToProtect': instancesToProtect,
if (instancesToTerminate != null)
'InstancesToTerminate': instancesToTerminate,
};
}