Serializable Class

  • java.lang.Object
    • java.io.Serializable
      • com.microsoft.azure.sdk.iot.provisioning.service.configs.Serializable

public class Serializable

Abstract class with the parser for the provisioning configurations.

Method Summary

Modifier and Type Method and Description
String toJson()

Serializer

Creates aString 

</code> , which the content represents the information in the child class and its subclasses in a JSON format. </p>

abstract JsonElement toJsonElement()
String toString()

Creates a pretty print JSON with the content of the child class and subclasses.

Method Details

toJson

public String toJson()

Serializer

Creates aString 

</code> , which the content represents the information in the child class and its subclasses in a JSON format. </p>

Returns:

TheString 

</code> with the JSON. </p>

toJsonElement

protected abstract JsonElement toJsonElement()

toString

public String toString()

Creates a pretty print JSON with the content of the child class and subclasses.

Returns:

TheString 

</code> with the pretty print JSON. </p>

Applies to