toJson method

Map<String, dynamic> toJson()

Builds JSON representation.

Implementation

Map<String, dynamic> toJson() => {
      'PerMessage': perMessage
          .map((list) => list.map((pair) => pair.toJson()).toList())
          .toList(),
      'Global': global.map((pair) => pair.toJson()).toList(),
    };