Map<String, dynamic> toJson() { final data = new Map<String, dynamic>(); data['id'] = this.id; data['userId'] = this.userId; data['groupId'] = this.groupId; data['dirty'] = this.dirty; return data; }