toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    if (recommendedMaxWorkingSetSize != null)
      'recommendedMaxWorkingSetSize': recommendedMaxWorkingSetSize,
    if (registryID != null) 'registryID': registryID,
    if (maxThreadsPerThreadgroup != null)
      'maxThreadsPerThreadgroup': maxThreadsPerThreadgroup!.toJson(),
    if (supportsFamily != null) 'supportsFamily': supportsFamily,
  };
}