SmartKeyDecodingStrategy
public enum SmartKeyDecodingStrategy : Sendable
Undocumented
-
Use the keys specified by each type. This is the default strategy.
Declaration
Swift
case useDefaultKeys -
Convert from “snake_case_keys” to “camelCaseKeys” before attempting to match a key with the one specified by each type. For example,
one_two_threebecomesoneTwoThree._one_two_three_becomes_oneTwoThree_.Declaration
Swift
case fromSnakeCase -
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