@Override public String toString() { return value(); }
@Override public String toString() { return value(); }
@Override public String toString() { return value(); }
@Override public JsonObject apply(@Nullable CreateSubscriptionRequest input) { if (input == null) { return null; } JsonObject createSubscriptionObject = new JsonObject(); if (input.getAmount() != null) { createSubscriptionObject.addProperty("amount", input.getAmount()); } if (input.getPeriod() != null) { createSubscriptionObject.addProperty("period", input.getPeriod()); } if (input.getResource() != null) { createSubscriptionObject.addProperty("resource", input.getResource().value()); } return createSubscriptionObject; } }
@Override public JsonObject apply(@Nullable CreateSubscriptionRequest input) { if (input == null) { return null; } JsonObject createSubscriptionObject = new JsonObject(); if (input.getAmount() != null) { createSubscriptionObject.addProperty("amount", input.getAmount()); } if (input.getPeriod() != null) { createSubscriptionObject.addProperty("period", input.getPeriod()); } if (input.getResource() != null) { createSubscriptionObject.addProperty("resource", input.getResource().value()); } return createSubscriptionObject; } }
@Override public JsonObject apply(@Nullable CreateSubscriptionRequest input) { if (input == null) { return null; } JsonObject createSubscriptionObject = new JsonObject(); if (input.getAmount() != null) { createSubscriptionObject.addProperty("amount", input.getAmount()); } if (input.getPeriod() != null) { createSubscriptionObject.addProperty("period", input.getPeriod()); } if (input.getResource() != null) { createSubscriptionObject.addProperty("resource", input.getResource().value()); } return createSubscriptionObject; } }