toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeviceFormFactor.phone:
      return 'PHONE';
    case DeviceFormFactor.tablet:
      return 'TABLET';
  }
}