toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InstanceMetadataEndpointState.disabled:
      return 'disabled';
    case InstanceMetadataEndpointState.enabled:
      return 'enabled';
  }
}