add Ressource construction `from_json` that filters out unknown datafields
When initalizing ressources from json (from the gitlab API),
the ressource constructor injected by @dataclass
fails if
unknown parameters are provided.
The class method from_json
filter out unknown fields into
an extra
dict, thus allowing.
For the client, instead of doing res = cls(gitlab, **json)
(that fails if unknown fields exists in json
), it should do
res = cls.from_json(gitlab=gitlab, **json)