CLCmdGogpsHeaderV2.fromSwim constructor

CLCmdGogpsHeaderV2.fromSwim(
  1. PERIPHERAL_GOGPS_HEADER_SWIM v
)

Implementation

factory CLCmdGogpsHeaderV2.fromSwim(PERIPHERAL_GOGPS_HEADER_SWIM v) =>
    CLCmdGogpsHeaderV2(
        workoutType: v.workoutType,
        blkIndex: v.blkIndex,
        timestamp: v.timestamp,
        latitude: 0,
        longitude: 0,
        calories: v.calories.toInt(),
        lapdistance: v.lapdis);