@dataclasses.dataclass
class ClientSettlementResultHeader:
    provider_source_header_id: int
    contract_condition_id: int
    settlement_state_id: int
    date_from: date
    date_to: date
    id: int | None = None
    resolution_id: int | None = None
    status_id: int | None = None
    started_datetime: datetime | None = None
    finished_datetime: datetime | None = None

    def update_status(self, status: Status) -> None:
        status_id = get_model_by_short_name(models_db.Status, status)
        self.status_id = status_id

    def parse_to_db_model(self) -> models_db.ClientSettlementResultHeader:
        result_header = parse_obj_as(models_db.ClientSettlementResultHeader, self.__dict__)
        return result_header

    def save(self) -> None:
        saved_object = save_client_settlement_result_header(self.parse_to_db_model())
        self = parse_obj_as(ClientSettlementResultHeader, saved_object._asdict())

La línea result_header=parse_obj... no funciona. Hay alguna manera automática de generar un modelo de este tipo? Es un modelo de base de datos de sqlalchemy