-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
`public protocol BaseResponse : JSONCodable {
var statusCode:Int{get}
var statusmessage:String?{get}
var success:Bool?{get}
}
public struct PrimitiveResponse : BaseResponse {
public var status : Int = 0
public var succeeded:Bool?
public var message:String?
public var data:T?
// public static let transformersByPropertyKey: [PropertyKey: JSONTransformer] = [
// "status" : "statusCode",
// "succeeded" : "success"
// ]
}`
!!! compiler comes out the error "Static stored properties not supported in generic types"
Btw, this editor ignored the key part [ "< T : JSONCodable >" ].
Metadata
Metadata
Assignees
Labels
No labels