Add support for getting ContactDetails as a map