KeyEncodingStrategy

public enum KeyEncodingStrategy

Defines available strategies to use when encoding key names.

  • Converts keys into snake_case.

    Declaration

    Swift

    case convertToSnakeCase
  • Uses keys as they are defined, without modifying them.

    Declaration

    Swift

    case useDefaultKeys
  • Uses a custom coding strategy defined by the closed provided.

    Declaration

    Swift

    case custom(([CodingKey]) -> CodingKey)