toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json['type'] = 'HeapSpace';
  json.addAll({
    'avgCollectionPeriodMillis': avgCollectionPeriodMillis,
    'capacity': capacity,
    'collections': collections,
    'external': external,
    'name': name,
    'time': time,
    'used': used,
  });
  return json;
}