toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  var json = <String, dynamic>{};
  json['type'] = 'MemoryUsage';
  json.addAll({
    'externalUsage': externalUsage,
    'heapCapacity': heapCapacity,
    'heapUsage': heapUsage,
  });
  return json;
}