Cloud Stack Ninja

I have this Account struct. I want to ignore the following properties environments and Id in encoding to JSON object when I send "POST" endpoint and use them return success decoding to swift object

update I have this error Property type '[Environment]' does not match that of the 'wrappedValue' property of its wrapper type 'SkipEncode'

struct Account: Codable {
    let accountID, displayName, managedByID, id: String
    let environments: [Environment]
    let contacts: [Contact]

    enum CodingKeys: String, CodingKey {
        case accountID
        case displayName
        case managedID
        case id
        case environments
        case contacts

Read more here:

Content Attribution

This content was originally published by NinjaDeveloper at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: