Implemented a serialiser for the Interest class.