copyWith method

ExcerciseInfoResponseModel copyWith({
  1. String? isexercisescheduled,
  2. String? isexerciseactive,
  3. String? exercisestarttime,
  4. String? lastexercise,
  5. double? lastran,
  6. String? lastrandatetime,
  7. String? exerciseinterval,
  8. String? exerciserundurationminutes,
  9. String? exercisemode,
  10. double? nextexercise,
  11. String? nextexercisedatetime,
})

Implementation

ExcerciseInfoResponseModel copyWith(
    {String? isexercisescheduled,
    String? isexerciseactive,
    String? exercisestarttime,
    String? lastexercise,
    double? lastran,
    String? lastrandatetime,
    String? exerciseinterval,
    String? exerciserundurationminutes,
    String? exercisemode,
    double? nextexercise,
    String? nextexercisedatetime}) {
  return ExcerciseInfoResponseModel(
      isexercisescheduled: isexercisescheduled ?? this.isexercisescheduled,
      isexerciseactive: isexerciseactive ?? this.isexerciseactive,
      exercisestarttime: exercisestarttime ?? this.exercisestarttime,
      lastexercise: lastexercise ?? this.lastexercise,
      lastran: lastran ?? this.lastran,
      lastrandatetime: lastrandatetime ?? this.lastrandatetime,
      exerciseinterval: exerciseinterval ?? this.exerciseinterval,
      exerciserundurationminutes:
          exerciserundurationminutes ?? this.exerciserundurationminutes,
      exercisemode: exercisemode ?? this.exercisemode,
      nextexercise: nextexercise ?? this.nextexercise,
      nextexercisedatetime:
          nextexercisedatetime ?? this.nextexercisedatetime);
}