Kilian Schulte

Results 211 comments of Kilian Schulte

I'm sorry you see it that way. Thing is you don't even need to call `jsonEncode` because `.toJson()` already outputs the encoded json string. Would it make a difference if...

I know how jsonEncode works. What I'm saying is that you don't need to do `jsonEncode(myObject)` and instead can directly do `myObject.toJson()` which will give you the desired output of...

I see. I haven't thought about that to be honest. Maybe giving in on this really is the way forward, in the end I want the package to be as...

@eitanliu Please don't use `_guard`, this is an internal implementation that might change any time.

> 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 >...

Only methods in the generated code will change. Other methods, like `MapperContainer.globals.fromJson` can't be changed.

Thanks for bringing this to my attention again. I am pretty fixed by now on keeping the naming as it is, since I have also received lots of feedback from...

Thanks for this very valuable feedback. It helps me a lot to understand how people are using the package. I your particular I wasn't much aware the renaming feature is...

@rydmike See the updated docs: https://pub.dev/documentation/dart_mappable/latest/topics/Migration%20and%20Compatibility-topic.html

1. > What do I need keep in mind to to ensure that myClass == MyClassMapper.fromJson(myClass.toJson()) is true? The package does its best to ensure that very condition. So usually...