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.
![스크린샷 2024-06-27 오전 2.17.49.png](https://groups.google.com/group/tinode/attach/3dc074a85c3ca/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-06-27%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%202.17.49.png?part=0.1&view=1)