Map<String, dynamic> toJson() { final key = this.key; final valueSet = this.valueSet; return { 'key': key.toValue(), 'valueSet': valueSet, }; }