Json issue in dart sdk

6 views
Skip to first unread message

김태희

unread,
Jun 26, 2024, 1:24:05 PM (8 days ago) Jun 26
to Tinode General
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

Gene

unread,
Jun 26, 2024, 1:40:29 PM (8 days ago) Jun 26
to Tinode General
Dart SDK is abandoned, the repo is archived. No one supports it at the moment.
Reply all
Reply to author
Forward
0 new messages