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 com.helger.json.IJsonObjectconvertToJson(PModeLegSecurity aValue) Convert the providedPModeLegSecurityobject to a JSON object.static PModeLegSecurityconvertToNative(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
@Nonnull public static 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
-