toJson method

Map<String, dynamic> toJson()

Serialize to a JSON-encodable map, omitting absent members.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'count': count,
      'bytes': bytes,
      if (limit != null) 'limit': limit!,
      if (saturation != null) 'saturation': saturation!,
      if (oldestAgeSeconds != null) 'oldestAgeSeconds': oldestAgeSeconds!,
      if (deliveredUnacked != null) 'deliveredUnacked': deliveredUnacked!,
    };