Using Scala to represent two JSON fields of which only one can be null

前端 未结 0 637
执念已碎
执念已碎 2020-12-18 17:01

Let\'s say my API returns a JSON that looks like this:

{
  "field1": "hey",
  "field2": null,
}

I have this

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