import 'package:smoke_cess_app/interface/db_record.dart'; class HIITWorkout implements DatabaseRecord { Duration _workoutDuration; String _commentBefore; String _commentAfter; DateTime _workoutDate; HIITWorkout(this._workoutDuration, this._commentBefore, this._commentAfter, this._workoutDate); /* @override HIITWorkout.fromMap(Map map) { _workoutDuration = map['_workoutDuration']; _commentBefore = map['_commentBefore']; _commentAfter = map['_commentAfter']; _workoutDate = map['_workoutDate']; } */ @override String toCSV() => "${_workoutDate.toIso8601String()}, $_workoutDuration, $_commentBefore, $_commentAfter"; @override Map toMap() { return { 'workoutDuration': _workoutDuration, 'commentBefore': _commentBefore, 'commentAfter': _commentAfter, 'workoutDate': _workoutDate, }; } }