// You need to add a toJson on your class.
// In my case was the params that were being sent to the api
/// var inputParams = new BlaBla(prop1: null, prop2: null).toJson();
class BlaBla {
String prop1;
String prop2;
BlaBla({this.prop1,this.prop2});
Map toJson() => {"prop1": prop1, "prop2": prop2}; // <-- add this
}
Code Example |
---|
:: flutter animatedalign |
Dart :: dart what is a closure |
Dart :: dart getter |
:: |
:: |
:: flutter int max value |
:: change app bar height flutter |
Dart :: |
:: |
:: |
:: |
:: |
Dart :: |
:: |
:: Named parameters dart |
:: |
:: |
:: print an object dart |
:: |
:: |
:: |
:: how to check Flutter app comes to foreground |
Dart :: |
:: |
:: arrary where dart |
:: dart language asynchronous ?? |
Dart :: |
Dart :: |
Dart :: |
:: |