class GoalRequest {
  String? id;

  String title;

  String description;

  String category;

  String defaultClass;

  String startDate;

  String targetDate;

  String colourHex;

  GoalRequest({
    this.id,
    this.title = "",
    this.description = "",
    this.category = "",
    this.defaultClass = "Standard",
    this.startDate = "",
    this.targetDate = "",
    this.colourHex = "",
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['title'] = title;
    data['description'] = description;
    data['category'] = category;
    data['defaultClass'] = defaultClass;
    data['startDate'] = startDate;
    data['targetDate'] = targetDate;
    data['colourHex'] = colourHex;
    return data;
  }
}
