Как я могу удалить приложения в FormData. Есть ли способ легко получить FormGroup как FormData? Код такой повторяющийся и кажется каким-то ненужным.
formularioApartamentoLocacao: FormGroup;
const formulario = new FormData();
formulario.append('preco', this.formularioApartamentoLocacao.controls['preco'].value ) ;
formulario.append('banheiros', this.formularioApartamentoLocacao.controls['banheiros'].value);
formulario.append('vagas_garagem', this.formularioApartamentoLocacao.controls['vagas_garagem'].value);
formulario.append('suites', this.formularioApartamentoLocacao.controls['su'].value);
formulario.append('foto_1', this.formularioApartamentoLocacao.controls['foto_1'].value);
formulario.append('foto_2', this.formularioApartamentoLocacao.controls['foto_2'].value);
formulario.append('foto_3', this.formularioApartamentoLocacao.controls['foto_3'].value);
formulario.append('foto_4', this.formularioApartamentoLocacao.controls['foto_4'].value);
formulario.append('foto_5', this.formularioApartamentoLocacao.controls['foto_5'].value);
formulario.append('foto_6', this.formularioApartamentoLocacao.controls['foto_6'].value);
formulario.append('foto_7', this.formularioApartamentoLocacao.controls['foto_7'].value);
formulario.append('dormitorios', this.formularioApartamentoLocacao.controls['dormitorios'].value);