toJson method

  1. @override
Map<String, Object?> toJson()

Returns this as a serializable JSON value.

Implementation

@override
Map<String, Object?> toJson() => {
      'runtimeType': 'StackItemSets',
      'insertions': insertions
          .map((e) => [e.$1.toString(), e.$2.map((e) => e.toJson()).toList()])
          .toList(),
      'deletions': deletions
          .map((e) => [e.$1.toString(), e.$2.map((e) => e.toJson()).toList()])
          .toList(),
    };