(SOLVED) How to set value for properties in lua class

Hi guys, sorry if this could be off-topic as the forum is about Defold most
I am trying to create a class in lua module


My using

I tried to print out the result. The value mType got set correctly but the ID is not. It keep returning nil.
I was really confused about lua class.

You have a typo in your class file on line 20.
class.mOrderId should be class.mOrderID

2 Likes

Thanks @rama. I cant believe it because of typo