Map<String, Object?> toJson() { var key = this.key; var target = this.target; final json = <String, Object?>{}; json[r'key'] = key.value; json[r'target'] = target.value; return json; }