How to decode object where some properties may/may not be optional depending on type?

后端 未结 0 1677
春和景丽
春和景丽 2020-12-05 05:06

If I have an array of InfoModule objects, how I can decode the objects so that for certain types, data would not be optional?

struct InfoModule: Decodable {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题