Interface JsonSerializable

All Known Implementing Classes:
BillingAddress, CreditCard, Device, Disposition, Email, EmailDomain, EmailDomainVisit, FactorsResponse, GeoIp2Location, InsightsResponse, IpAddress, IpRiskReason, Issuer, Phone, Reason, RiskScoreReason, ScoreIpAddress, ScoreResponse, ShippingAddress, Warning

public interface JsonSerializable
Interface for classes that can be serialized to JSON. Provides default implementation for toJson() method.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     
  • Method Details

    • toJson

      default String toJson() throws IOException
      Returns:
      JSON representation of this object.
      Throws:
      IOException - if there is an error serializing the object to JSON.