/// One objective as typed into the shared-goal editor. class ObjectiveDraft { String title; String unit; double target; ObjectiveDraft({this.title = "", this.unit = "", this.target = 0}); Map toJson() { final Map data = {}; data['title'] = title; data['unit'] = unit; data['target'] = target; return data; } }