Constructs a BaseModel with the given type and optional startTime.
type
startTime
BaseModel({required this.type, this.startTime});