toInternalString method

String toInternalString()

Implementation

String toInternalString() {
  switch (this) {
    case HekaPlatform.googleFit:
      return 'google_fit';
    case HekaPlatform.appleHealth:
      return 'apple_healthkit';
    default:
      return toString().toLowerCase().split('.').last;
  }
}