toJson method
Implementation
Map<String, dynamic> toJson() {
final devices = this.devices;
final initProcessEnabled = this.initProcessEnabled;
final maxSwap = this.maxSwap;
final sharedMemorySize = this.sharedMemorySize;
final swappiness = this.swappiness;
final tmpfs = this.tmpfs;
return {
if (devices != null) 'devices': devices,
if (initProcessEnabled != null) 'initProcessEnabled': initProcessEnabled,
if (maxSwap != null) 'maxSwap': maxSwap,
if (sharedMemorySize != null) 'sharedMemorySize': sharedMemorySize,
if (swappiness != null) 'swappiness': swappiness,
if (tmpfs != null) 'tmpfs': tmpfs,
};
}