factory ErrorDetails.fromJSON(Map<String, dynamic> object) { return ErrorDetails( id: object['id'], message: object['message'], ); }