milesIn: mapper.applyDynamicFromJsonConverter(json['milesIn'])!, I hope you don't abandon this project as I love it. The other solutions pollute the code with files everywhere. This is the only good solution.