Interface JSONHelper.JSONToObject<T>

Enclosing interface:
JSONHelper
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface JSONHelper.JSONToObject<T>
This functional interface defines a method to create an object of type T from a JSON object.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(org.json.JSONObject jsonObject)
    Creates an object of type T from a JSON object.
  • Method Details

    • apply

      T apply(org.json.JSONObject jsonObject)
      Creates an object of type T from a JSON object.
      Parameters:
      jsonObject - the JSON object
      Returns:
      the created object