Added toDict and fromDict to agency and service request.