http4k / org.http4k.filter / GenerateDataClasses
GenerateDataClasses
class GenerateDataClasses<out NODE> :
Filter
This Filter is used to generate Data class definitions from a Response containing JSON. The Filter will try and reduce
the number of class definitions by selecting the definition with the most fields (for cases where lists of items
have different fields).
Types
Constructors
Name |
Summary |
<init> |
This Filter is used to generate Data class definitions from a Response containing JSON. The Filter will try and reduce the number of class definitions by selecting the definition with the most fields (for cases where lists of items have different fields).GenerateDataClasses(json: Json <NODE>, out: PrintStream = System.out, idGenerator: () -> Int = { abs(Random.nextInt()) }) |
Functions
Extension Functions