devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

Encoder

class Encoder

Undocumented

  • The strategy to use in encoding dates. Defaults to .timestamp.

    Declaration

    Swift

    public var dateEncodingStrategy: FirebaseDataEncoder.DateEncodingStrategy
  • Firestore encodes Data as NSData blobs versus the default .base64 strings.

    Declaration

    Swift

    public var dataEncodingStrategy: FirebaseDataEncoder.DataEncodingStrategy
  • The strategy to use in encoding non-conforming numbers. Defaults to .throw.

    Declaration

    Swift

    public var nonConformingFloatEncodingStrategy: FirebaseDataEncoder.NonConformingFloatEncodingStrategy
  • The strategy to use for encoding keys. Defaults to .useDefaultKeys.

    Declaration

    Swift

    public var keyEncodingStrategy: FirebaseDataEncoder.KeyEncodingStrategy
  • Contextual user-provided information for use during encoding.

    Declaration

    Swift

    public var userInfo: [CodingUserInfoKey : Any]
  • Undocumented

    Declaration

    Swift

    public func encode<T>(_ value: T) throws -> [String : Any] where T : Encodable
  • Undocumented

    Declaration

    Swift

    public init()