Responseのvalueがnullの時に、CodableでDecodingError.valueNotFoundになってまうねん
Cons
?
をつけるの忘れず
hoge = try container.decode(Hoge?.self, forKey: .hogeKey)
Ref
所感
あれ、この前出来てたのにってなったのでまた起こりそうなので備忘として残しておく。
?
をつけるの忘れず
hoge = try container.decode(Hoge?.self, forKey: .hogeKey)
あれ、この前出来てたのにってなったのでまた起こりそうなので備忘として残しておく。