/// Creates a group, or renames one when [id] is set. class GroupRequest { String? id; String name; String description; String colourHex; GroupRequest({this.id, this.name = "", this.description = "", this.colourHex = ""}); Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; data['description'] = description; data['colourHex'] = colourHex; return data; } }