i have a problem using deleteMessages() using dart sdk.
i make a List<DelRange> variable .
And i insert variable in deleteMessages function by parameter.
But 'JsonUnsupportedObjectError (Converting object to an encodable object failed: Instance of 'DelRange')' issue occur.
i tried to solve problem.
By Inserting following code in 'del-range.dart' file.
but it didn't work.
Map<String, dynamic> toJson() {
return {
'low': low,
'hi': hi,
'all': all,
};
}
how can i do this state.
pls give me advice.