Conversion
public enum Conversion
Enum definining the supported JSON conversions
-
Convert from JSON. If
JSONCache.casing
is.snake_case
, the conversion is fromsnake_case
tocamelCase
; ifJSONCache.casing
is.camelCase
, no casing conversion is done, but reserved words are mapped to qualified counterparts (seeconvert(_:dictionary:qualifier:)
for details).Declaration
Swift
case fromJSON
-
Convert to JSON. If
JSONCache.casing
is.snake_case
, the conversion is fromcamelCase
tosnake_case
; ifJSONCache.casing
is.camelCase
, no casing conversion is done, but qualified attribute names are mapped to their unqualified counterparts (see theconvert(_:dictionary:qualifier:)
for details).Declaration
Swift
case toJSON