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_three
becomesoneTwoThree
._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,
OneTwoThree
becomesoneTwoThree
.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,
oneTwoThree
becomesOneTwoThree
.Declaration
Swift
case firstLetterUpper