toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final devices = this.devices;
  final memorySizeInKB = this.memorySizeInKB;
  final mountROSysfs = this.mountROSysfs;
  final volumes = this.volumes;
  return {
    if (devices != null) 'devices': devices,
    if (memorySizeInKB != null) 'memorySizeInKB': memorySizeInKB,
    if (mountROSysfs != null) 'mountROSysfs': mountROSysfs,
    if (volumes != null) 'volumes': volumes,
  };
}