Model of flare lightcurve profile observed in soft X-rays