Use static from_json instead