Map<String, dynamic> toJson() { final key = this.key; final type = this.type; final values = this.values; return { 'Key': key, 'Type': type.toValue(), 'Values': values, }; }