123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- import 'package:sport/services/Converter.dart';
- /// id : 322
- /// user_id : 141
- /// consume : 498121505
- /// consume_game : 12747
- /// consume_jog : 49
- /// consume_daily : 498108709
- /// duration : 100590
- /// duration_game : 100202
- /// duration_jog : 388
- /// step : 2147483647
- /// step_game : 198660
- /// step_jog : 679
- /// step_daily : 2147483647
- /// distance : 528
- /// distance_game : 0
- /// distance_jog : 528
- /// distance_daily : 0
- /// times : 707
- /// times_game : 706
- /// times_jog : 1
- /// crouch : 13006
- /// jump : 4533
- /// duration_game_step : 100202
- /// duration_jump : 89580
- /// duration_crouch : 89580
- /// duration_step : 100590
- /// jump_rate : 3
- /// crouch_rate : 8
- /// step_rate : 118.9
- /// step_rate_game : 119
- /// step_rate_jog : 105
- class ExerRecordSum {
- int id = 0;
- int userId = 0;
- int consume = 0;
- int consumeGame = 0;
- int consumeJog = 0;
- int consumeDaily = 0;
- int duration = 0;
- int durationGame = 0;
- int durationJog = 0;
- int step = 0;
- int stepGame = 0;
- int stepJog = 0;
- int stepDaily = 0;
- int distance = 0;
- int distanceGame = 0;
- int distanceJog = 0;
- int distanceDaily = 0;
- int times = 0;
- int timesGame = 0;
- int timesJog = 0;
- int crouch = 0;
- int jump = 0;
- int durationGameStep = 0;
- int durationJump = 0;
- int durationCrouch = 0;
- int durationStep = 0;
- double jumpRate = 0.0;
- double crouchRate = 0.0;
- double stepRate = 0.0;
- double stepRateGame = 0;
- double stepRateJog = 0;
- ExerRecordSum.fromMap(Map<String, dynamic> map) {
- this.id = map['id'];
- this.userId = map['user_id'];
- this.consume = map['consume'];
- this.consumeGame = map['consume_game'];
- this.consumeJog = map['consume_jog'];
- this.consumeDaily = map['consume_daily'];
- this.duration = map['duration'];
- this.durationGame = map['duration_game'];
- this.durationJog = map['duration_jog'];
- this.step = map['step'];
- this.stepGame = map['step_game'];
- this.stepJog = map['step_jog'];
- this.stepDaily = map['step_daily'];
- this.distance = map['distance'];
- this.distanceGame = map['distance_game'];
- this.distanceJog = map['distance_jog'];
- this.distanceDaily = map['distance_daily'];
- this.times = map['times'];
- this.timesGame = map['times_game'];
- this.timesJog = map['times_jog'];
- this.crouch = map['crouch'];
- this.jump = map['jump'];
- this.durationGameStep = map['duration_game_step'];
- this.durationJump = map['duration_jump'];
- this.durationCrouch = map['duration_crouch'];
- this.durationStep = map['duration_step'];
- this.jumpRate = Converter.toDouble(map['jump_rate']);
- this.crouchRate = Converter.toDouble(map['crouch_rate']);
- this.stepRate = Converter.toDouble(map['step_rate']);
- this.stepRateGame = Converter.toDouble(map['step_rate_game']);
- this.stepRateJog = Converter.toDouble(map['step_rate_jog']);
- }
- Map toJson() =>
- {
- "id": id,
- "user_id": userId,
- "consume": consume,
- "consume_game": consumeGame,
- "consume_jog": consumeJog,
- "consume_daily": consumeDaily,
- "duration": duration,
- "duration_game": durationGame,
- "duration_jog": durationJog,
- "step": step,
- "step_game": stepGame,
- "step_jog": stepJog,
- "step_daily": stepDaily,
- "distance": distance,
- "distance_game": distanceGame,
- "distance_jog": distanceJog,
- "distance_daily": distanceDaily,
- "times": times,
- "times_game": timesGame,
- "times_jog": timesJog,
- "crouch": crouch,
- "jump": jump,
- "duration_game_step": durationGameStep,
- "duration_jump": durationJump,
- "duration_crouch": durationCrouch,
- "duration_step": durationStep,
- "jump_rate": jumpRate,
- "crouch_rate": crouchRate,
- "step_rate": stepRate,
- "step_rate_game": stepRateGame,
- "step_rate_jog": stepRateJog,
- };
- }
|