Initialize the agent object based on flight json object.