toJson method

String toJson()

Implementation

String toJson() {
  switch (this) {
    case Provider.fitbit:
      return 'fitbit';
    case Provider.dexcom:
      return 'dexcom';
    case Provider.oura:
      return 'oura';
    case Provider.suunto:
      return 'suunto';
    case Provider.garmin:
      return 'garmin';
    case Provider.strava:
      return 'strava';
    case Provider.polar:
      return 'polar';
    case Provider.whoop:
      return 'whoop';
    case Provider.withings:
      return 'withings';
    case Provider.wahoo:
      return 'wahoo';
    case Provider.apple:
      return 'apple';
    case Provider.healthConnect:
      return 'health_connect';
    case Provider.ultrahuman:
      return 'ultrahuman';
    case Provider.samsungHealthData:
      return 'samsung_health_data';
    case Provider.huawei:
      return 'huawei';
    case Provider.freestyleLibre:
      return 'freestyle_libre';
    case Provider.coros:
      return 'coros';
    case Provider.unknown:
      return '_unknown';
  }
}