It could be interesting to check if an external library such as Valinor could be used for all mapping, e. g. in Image or File model.
Alternative: https://github.com/brick/json-mapper