I need to add the properties to entity programatically, based on my service response.
For Ex: at the time of creation
class StockEntity : NSObject {
var Apples : String,
var Oranges : String
}
After some execution, may be it will add some more properties like, Grapes, Melons.
The newly adding properties are not aware at the initial.
I need to have this values in entity as based on this the calculations will happen. Right now I have done this feature with Dictionary. And I am looking for the most optimal ways.