import { FormBuilder, FormGroup } from '@angular/forms';
import { DmpInvitationUser } from './dmp-invitation-user';

export class DmpInvitation {

	public dataManagementPlan: string;
	public users = new Array<DmpInvitationUser>();

	buildForm(): FormGroup {
		const formGroup = new FormBuilder().group({
			dataManagementPlan: [this.dataManagementPlan],
			users: [this.users]
		});

		return formGroup;
	}
}
