Encodable

public extension Encodable
  • A string representation of Self type

    Throws

    JSON Encode failure error

    Declaration

    Swift

    func toString() throws -> String?

    Return Value

    The string representation on successful encode

Encoding Extensions

  • A string representation of Self type

    Throws

    JSON Encode failure error

    Declaration

    Swift

    func toDictionary() -> [String : Any]?

    Return Value

    The string representation on successful encode