How to create a common codable struct in swift for slightly different json responses.For example response A and B has almost same attributes and B has some extra attribute called Designation.Is it possible to create common codable struct for this scenario?
//Response A
{
"name" : "Jhon",
"age" : 23,
"mobile" : "+11012341234",
.
.
.
}
//Response B
{
"name" : "Jhon",
"age" : 23,
"mobile" : "+11012341234",
.
.
.
"designation": "Manager"
}