CodableFirebase
CodableFirebase copied to clipboard
Exclude some property
Hi,
I want exclude some property in my class while save firebase realtime database. Android equivalent @Exclude annotation. But i am not finded in library exclude feature.
Sample class
class User: Codable {
var Key: String = ""
var CompanyName: String = ""
//Exclude this property
var MqttServerItem: MqttServer?
init() {
MqttServerItem = MqttServer(key: "", name: "")
}
init(snapshot: DataSnapshot) {
initializeVariables(snapshot: snapshot)
}
}