Kilian Schulte

Results 211 comments of Kilian Schulte

There is the 'ignoreNull' property on '@MappableClass' for this.

I might add this as a feature in the future. For now you can always just write a custom hook to do this.

There are multiple ways this could be implemented using hooks. One way could work like this: ```dart @MappableClass(hook: RemoveIgnoredFields()) class Person { final String? name; // Add this hook to...

Unfortunately automatically adding imports to a source file is not possible with using build_runner. I understand the problem, but I don't know if or how I could fix it.

Hi. That sounds really awesome. I would love to try this out, but I cannot use the plugin with my current version: `IntelliJ IDEA Ultimate 2022.3.2` How easy or hard...

I tried it out and it looks really cool. Couple of notes: - There are some mentiones of dart 'bean classes'? - Why the `ensureInitialized()` in the constructor?

I wouldn't recommend generating the ensureInitialized in the constructor. It only needs to be called once in you app and also only is needed when using a mapper implicitly eg....

The mapper class cannot be private because mappers from different libraries can depend on each other.

I see your point. By now its almost a convention in dart to have `fromJson` take a map. But I've never liked or supported it for the following reason: While...

I added this as a build option for `build.yaml` in version `3.0.0-dev.5`: ```yaml global_options: dart_mappable_builder: options: renameMethods: fromJson: deserialize toJson: serialize fromMap: fromJson toMap: toJson ``` I will leave this...