CLCmdGogpsHeaderSwim.from constructor

CLCmdGogpsHeaderSwim.from(
  1. PERIPHERAL_GOGPS_HEADER_SWIM v
)

Implementation

factory CLCmdGogpsHeaderSwim.from(PERIPHERAL_GOGPS_HEADER_SWIM v) =>
    CLCmdGogpsHeaderSwim(
        workoutType: v.workoutType,
        blkIndex: v.blkIndex,
        timestamp: v.timestamp,
        lapdis: v.lapdis,
        calories: v.calories.toInt(),
        reserve1: v.reserve1,
        reserve2: v.reserve2,
        reserve3: v.reserve3,
        reserve4: v.reserve4,
        reserve5: v.reserve5,
        reserve6: v.reserve6,
        reserve7: v.reserve7,
        reserve8: v.reserve8,
        reserve9: v.reserve9);