Map to Class in Dart

后端 未结 4 1933
北海茫月
北海茫月 2021-01-11 17:44

Is there a standard way to convert a map to an object of a user defined class?

In Python you can do MyClass(**map) which basically unwraps the map into named argumen

4条回答
提交回复
热议问题