def dump(self): """Formats the time card block to be stored in a JSON document""" return { 'block': { 'date': Json.serialize_date(self.date), 'in_time': Json.serialize_date(self.start_time), 'out_time': Json.serialize_date(self.end_time) } }