toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, Object?>{
      'type': type,
      'members': members?.map((f) => f.toJson()).toList(),
      'memoryUsage': memoryUsage?.toJson(),
      if (dateLastAccumulatorReset case final dateLastAccumulatorResetValue?)
        'dateLastAccumulatorReset': dateLastAccumulatorResetValue,
      if (dateLastServiceGC case final dateLastServiceGCValue?)
        'dateLastServiceGC': dateLastServiceGCValue,
    };