add toDict function to stoptime model