toActionSubType method

ActionSubType toActionSubType()

Implementation

ActionSubType toActionSubType() {
  switch (this) {
    case 'STOP_EC2_INSTANCES':
      return ActionSubType.stopEc2Instances;
    case 'STOP_RDS_INSTANCES':
      return ActionSubType.stopRdsInstances;
  }
  throw Exception('$this is not known in enum ActionSubType');
}