SmartKeyEncodingStrategy
public enum SmartKeyEncodingStrategy : Sendable
Undocumented
-
Use the keys specified by each type. This is the default strategy.
Declaration
Swift
case useDefaultKeys -
Convert from “camelCaseKeys” to “snake_case_keys” before writing a key to JSON payload. For example,
oneTwoThreebecomesone_two_three._oneTwoThree_becomes_one_two_three_.Declaration
Swift
case toSnakeCase -
Convert the first letter of the key to lower case before attempting to match a key with the one specified by each type. For example,
OneTwoThreebecomesoneTwoThree.Declaration
Swift
case firstLetterLower -
Convert the first letter of the key to upper case before attempting to match a key with the one specified by each type. For example,
oneTwoThreebecomesOneTwoThree.Declaration
Swift
case firstLetterUpper
View on GitHub