Class PModeLegSecurityJsonConverter

java.lang.Object
com.helger.phase4.model.pmode.leg.PModeLegSecurityJsonConverter

@Immutable public final class PModeLegSecurityJsonConverter extends Object
JSON converter for objects of class PModeLegSecurity.
Since:
0.12.0
Author:
Philip Helger
  • Method Details

    • convertToJson

      public static @NonNull com.helger.json.IJsonObject convertToJson(@NonNull PModeLegSecurity aValue)
      Convert the provided PModeLegSecurity object to a JSON object. The conversion from JSON Object back to a domain object happens via convertToNative(IJsonObject).
      Parameters:
      aValue - The value to be converted. May not be null.
      Returns:
      The non-null JSON object filled with the necessary values.
    • convertToNative

      public static @NonNull PModeLegSecurity convertToNative(@NonNull com.helger.json.IJsonObject aElement)
      Convert the provided JSON to a PModeLegSecurity object.
      Parameters:
      aElement - The JSON object to be converted. May not be null.
      Returns:
      A non-null PModeLegSecurity
      Throws:
      IllegalStateException - In case of an unsupported value