For example, I have a JSON format like this:
{
"Invoice_iDoc": {
"name": "Invoice",
"methods": [
"customer",
"project",
"cost"
]
},
"PO": {
"name": "PO",
"methods": [
"date",
"amount"
]
}
}
I would like to create classes dynamically as Invoice and its methods customer, project, cost with default parameter as String, and the same for class PO as well.
Here is the requirement:
1-I don't have class files, named Invoice, and have methods of class Invoice as customer, project, cost and 2nd class as PO and its methods as date & amount, can I create these classes ?
2-I DONT'T have the class files Invoice and PO , I would like to generate it on the runtime, is this possible to do so? Thanks.