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 becomes oneTwoThree. _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 becomes oneTwoThree.

    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 becomes OneTwoThree.

    Declaration

    Swift

    case firstLetterUpper