【发布时间】:2018-03-29 13:16:29
【问题描述】:
我想把下面的.tostring转换成数据类怎么转换?
InstrumentResponse(AGM=false, AllOrNone=true, Bonus=true, Dividend=true, EGM=false, AuctionDetailInfo=AuctionDetailInfo(AuctionNumber=0, AuctionStatus=0, InitiatorType=0)
我想要做的是通过捆绑从一个片段到另一个片段传递数据类,但使用bundle.putString 做如何再次将其转换为数据类?
有没有更好的方法来实现?或者如何将dataClass.toString 转换为数据类?
【问题讨论】:
标签: android kotlin gson data-class