toMitigationActionType method
Implementation
MitigationActionType toMitigationActionType() {
switch (this) {
case 'UPDATE_DEVICE_CERTIFICATE':
return MitigationActionType.updateDeviceCertificate;
case 'UPDATE_CA_CERTIFICATE':
return MitigationActionType.updateCaCertificate;
case 'ADD_THINGS_TO_THING_GROUP':
return MitigationActionType.addThingsToThingGroup;
case 'REPLACE_DEFAULT_POLICY_VERSION':
return MitigationActionType.replaceDefaultPolicyVersion;
case 'ENABLE_IOT_LOGGING':
return MitigationActionType.enableIotLogging;
case 'PUBLISH_FINDING_TO_SNS':
return MitigationActionType.publishFindingToSns;
}
throw Exception('$this is not known in enum MitigationActionType');
}