Skip to content

Exclude some property #106

@alibarut

Description

@alibarut

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)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions