CLCmdUserProfile.from constructor
CLCmdUserProfile.from()
Implementation
factory CLCmdUserProfile.from(PERIPHERAL_USER_PROFILE_DATA v) {
final p = CLCmdUserProfile(
height_in_cm: v.height_in_cm,
weight_in_kg: v.weight_in_kg,
stride_length_in_cm: v.stride_length_in_cm,
stride_length_run_in_cm: v.stride_length_run_in_cm,
stepRateForRunLength: v.stepRateForRunLength,
units_type: v.units_type,
nickname: v.nickname.toDartString(),
clock_orientation: v.clock_orientation,
sleep_alarm_day_of_week: v.sleep_alarm_day_of_week,
bed_hr: v.bed_hr,
bed_min: v.bed_min,
wakeup_hr: v.wakeup_hr,
wakeup_min: v.wakeup_min,
screen_display_option: v.screen_display_option,
touch_virbration: v.touch_virbration,
daily_goal: v.daily_goal,
training_display_option: v.training_display_option,
age: v.age,
sex: v.sex,
stride_length_run_indoor_in_cm: v.stride_length_run_indoor_in_cm,
hr_alarm_rate: v.hr_alarm_rate,
pace_alarm_zone: v.pace_alarm_zone,
app_setting: v.app_setting,
caloryDisplayType: v.caloryDisplayType,
healthinfolevel: v.healthinfolevel,
stepAlarmEn: v.stepAlarmEn,
stepAlarmVal: v.stepAlarmVal,
calAlarmEn: v.calAlarmEn,
calAlarmVal: v.calAlarmVal,
stAlarmVal: v.stAlarmVal,
stMinAlarmVal: v.stMinAlarmVal);
p._nickname_len = v.nickname_len;
return p;
}