CLCmdGogpsBodyPeakNew.from constructor

CLCmdGogpsBodyPeakNew.from(
  1. PERIPHERAL_GOGPS_BODY_PEAK_OUTDOORNEW v
)

Implementation

factory CLCmdGogpsBodyPeakNew.from(PERIPHERAL_GOGPS_BODY_PEAK_OUTDOORNEW v) =>
      CLCmdGogpsBodyPeakNew(
          type: v.type,
          timestamp: v.timestamp,
          heartrate: v.heartrate,
          secIndex: v.secIndex,
          lat:v.lat,
          lon:v.lon,
          altitude: v.altitude,
          distance: 0,
          steps: 0,
          accuracy: v.altitude);