1. 程式人生 > >JSONDecoder The data couldn’t be read because it is missing.

JSONDecoder The data couldn’t be read because it is missing.

字典轉模型呼叫這個方法 JSONDecoder().decode(_, from:),丟擲錯誤:The data couldn’t be read because it is missing.

原因是字典和模型的屬性個數不一致