toResourceType method

ResourceType toResourceType()

Implementation

ResourceType toResourceType() {
  switch (this) {
    case 'ManagedInstance':
      return ResourceType.managedInstance;
    case 'Document':
      return ResourceType.document;
    case 'EC2Instance':
      return ResourceType.eC2Instance;
  }
  throw Exception('$this is not known in enum ResourceType');
}