Registration State(String json) 构造函数
This constructor creates an instance of the device registration state filling the class with the information provided in the JSON.
public DeviceRegistrationState(String json)
</code> with the JSON received from the provisioning service. </p>
If the provided JSON is null, empty, or invalid.