KeyMappable

public protocol KeyMappable

通用Key键名映射协议,兼容Codable、CodableModel、JSONModel,推荐使用

ExCodable

Available where Self: Codable & ObjectType

  • encode(to:) Extension method

    Undocumented

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • init(from:) Extension method

    Undocumented

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • encodeMirror(to:) Extension method

    Undocumented

    Declaration

    Swift

    public func encodeMirror(to encoder: Encoder) throws
  • decodeMirror(from:) Extension method

    Undocumented

    Declaration

    Swift

    public func decodeMirror(from decoder: Decoder) throws

Available where Self: _ExtendCustomModelType

  • mappingValue(_:forKey:) Extension method

    Undocumented

    Declaration

    Swift

    public mutating func mappingValue(_ value: Any, forKey key: String)
  • mappingMirror(_:forKey:) Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    public func mappingMirror(_ value: Any, forKey key: String) -> Bool