Class PModeLegSecurityJsonConverter
java.lang.Object
com.helger.phase4.model.pmode.leg.PModeLegSecurityJsonConverter
JSON converter for objects of class
PModeLegSecurity.- Since:
- 0.12.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull com.helger.json.IJsonObjectconvertToJson(@NonNull PModeLegSecurity aValue) Convert the providedPModeLegSecurityobject to a JSON object.static @NonNull PModeLegSecurityconvertToNative(@NonNull com.helger.json.IJsonObject aElement) Convert the provided JSON to aPModeLegSecurityobject.
-
Method Details
-
convertToJson
Convert the providedPModeLegSecurityobject to a JSON object. The conversion from JSON Object back to a domain object happens viaconvertToNative(IJsonObject).- Parameters:
aValue- The value to be converted. May not benull.- Returns:
- The non-
nullJSON object filled with the necessary values.
-
convertToNative
public static @NonNull PModeLegSecurity convertToNative(@NonNull com.helger.json.IJsonObject aElement) Convert the provided JSON to aPModeLegSecurityobject.- Parameters:
aElement- The JSON object to be converted. May not benull.- Returns:
- A non-
nullPModeLegSecurity - Throws:
IllegalStateException- In case of an unsupported value
-