InstanceResizePolicy.fromJson constructor
InstanceResizePolicy.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InstanceResizePolicy.fromJson(Map<String, dynamic> json) {
return InstanceResizePolicy(
instanceTerminationTimeout: json['InstanceTerminationTimeout'] as int?,
instancesToProtect: (json['InstancesToProtect'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
instancesToTerminate: (json['InstancesToTerminate'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}