{"width":"100%","version":"1.0","categories":["Swift","iOS"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkomaji504.hateblo.jp%2Fentry%2F2020%2F02%2F28%2F212820\" title=\"AssociatedValue \u306e\u6709\u308a\u3068\u7121\u3057\u306e case \u3092\u8907\u6570\u6301\u3064 Enum \u3092 Decode \u3059\u308b - \u30c9\u30f3\u30fb\u30a8\u30f3\u30b8\u30cb\u30fc\u30a2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"AssociatedValue \u304c\u7121\u3044 case \u304c\uff11\u3064 enum Food { case hamburger(topping: String) case pizza } \u4e0a\u8a18\u306e\u3088\u3046\u306a Enum \u304c\u3042\u308a\u307e\u3057\u3066\u3001\u3053\u308c\u3092 Decodable \u306b\u6e96\u62e0\u3059\u308b\u3068 extension Food: Decodable { enum CodingKeys: String, CodingKey { case hamburger case pizza } init(from decoder: Decoder) throws { let container = try decoder.container(keyedB\u2026","author_name":"komaji504","type":"rich","url":"https://komaji504.hateblo.jp/entry/2020/02/28/212820","title":"AssociatedValue \u306e\u6709\u308a\u3068\u7121\u3057\u306e case \u3092\u8907\u6570\u6301\u3064 Enum \u3092 Decode \u3059\u308b","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/komaji504/","blog_url":"https://komaji504.hateblo.jp/","blog_title":"\u30c9\u30f3\u30fb\u30a8\u30f3\u30b8\u30cb\u30fc\u30a2","height":"190","image_url":null,"published":"2020-02-28 21:28:20"}