toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final autoStrideEnabled = this.autoStrideEnabled;
  final distanceUnit = this.distanceUnit;
  final foodLanguageCode = this.foodLanguageCode;
  final glucoseUnit = this.glucoseUnit;
  final heightUnit = this.heightUnit;
  final languageLocale = this.languageLocale;
  final name = this.name;
  final strideLengthRunningType = this.strideLengthRunningType;
  final strideLengthWalkingType = this.strideLengthWalkingType;
  final swimUnit = this.swimUnit;
  final temperatureUnit = this.temperatureUnit;
  final timeZone = this.timeZone;
  final utcOffset = this.utcOffset;
  final waterUnit = this.waterUnit;
  final weightUnit = this.weightUnit;
  return {
    'autoStrideEnabled': ?autoStrideEnabled,
    'distanceUnit': ?distanceUnit,
    'foodLanguageCode': ?foodLanguageCode,
    'glucoseUnit': ?glucoseUnit,
    'heightUnit': ?heightUnit,
    'languageLocale': ?languageLocale,
    'name': ?name,
    'strideLengthRunningType': ?strideLengthRunningType,
    'strideLengthWalkingType': ?strideLengthWalkingType,
    'swimUnit': ?swimUnit,
    'temperatureUnit': ?temperatureUnit,
    'timeZone': ?timeZone,
    'utcOffset': ?utcOffset,
    'waterUnit': ?waterUnit,
    'weightUnit': ?weightUnit,
  };
}