class SessionLogRequest {
  String? id;

  String templateId;

  String startedAt;

  String endedAt;

  double sessionRpe;

  int sleepScore;

  int sorenessScore;

  int motivationScore;

  List<Map<String, dynamic>> sets;

  SessionLogRequest({
    this.id,
    this.templateId = "",
    this.startedAt = "",
    this.endedAt = "",
    this.sessionRpe = 0,
    this.sleepScore = 0,
    this.sorenessScore = 0,
    this.motivationScore = 0,
    List<Map<String, dynamic>>? sets,
  }) : sets = sets ?? <Map<String, dynamic>>[];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['templateId'] = templateId;
    data['startedAt'] = startedAt;
    data['endedAt'] = endedAt;
    data['sessionRpe'] = sessionRpe;
    data['sleepScore'] = sleepScore;
    data['sorenessScore'] = sorenessScore;
    data['motivationScore'] = motivationScore;
    data['sets'] = sets;
    return data;
  }
}
