KeyMappable

public protocol KeyMappable

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

ExCodable

Available where Self: Codable & ObjectType

  • encode(to:) Extension method

    Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

    func decodeMirror(from decoder: Decoder) throws

Available where Self: _ExtendCustomModelType

  • mappingValue(_:forKey:) Extension method

    Undocumented

    Declaration

    Swift

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

    Undocumented

    Declaration

    Swift

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