<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Android 。 gson が nullable じゃない property に null を設定してくれる上に例外も投げてくれないので moshi に置き換えようとしている。 sealed class 良さそう。 sealed class K() { class A(val a: Int) : K() class B(val b: String) : K() } // ... when (obj) { is A -&gt; obj.a.toString() is B -&gt; obj.b }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2019%2F08%2F22%2F233242&quot; title=&quot;gson -&amp;gt; moshi / sealed class - bouzuya.hatenablog.com&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-22 23:32:42</published>
  <title>gson -&gt; moshi / sealed class</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2019/08/22/233242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
