ToJson() public method

public ToJson ( ) : string
return string
 public MessageResult sendPush(PushPayload payload) 
 {
     Preconditions.checkArgument(payload != null, "pushPayload should not be empty");
     payload.Check();
     String payloadJson = payload.ToJson();
     return sendPush(payloadJson);
 }