Package org.azd.utils

Class ModelBuilder

java.lang.Object
org.azd.utils.ModelBuilder

@Deprecated(since="v6.0") public class ModelBuilder extends Object
Deprecated.
Helper class to construct the request body dynamically by removing non-assigned values in a type.
  • Constructor Details

    • ModelBuilder

      public ModelBuilder()
      Deprecated.
  • Method Details

    • build

      public static Map build(Object model, List<String> valuesToRemove) throws AzDException
      Deprecated.
      Build method to construct the request body based on given object.
      Parameters:
      model - request body.
      valuesToRemove - Specify the values to remove from request body if it was assigned by default.
      Returns:
      a Map.
      Throws:
      AzDException - Default exception handler.