= JSONDecoder() let response = try decoder.decode(Response.self, from: data) // do something with response } catch { assertionFailure("\(error)") return } } ԾʹαʔόͷσʔλͱҰக͠ͳ͔ͬͨΒ BTTFSUJPO'BJMVSFʹΑͬͯ σόοάϏϧυ͚ͩΫϥογϡͯ͠
όάΛૣظൃݟ͠ɺ ຊ൪ͷϦϦʔεϏϧυʹӨڹͳ͠ɻ ʢͪΖΜ͜͜ͰߋʹΤϥʔΞϥʔτΛ
Ϣʔβʹදࣔͤͨ͞Βͳ͓ྑ͠ʣ