toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (bytesReadThisSession != null)
        'bytesReadThisSession': bytesReadThisSession!,
      if (bytesWrittenThisSession != null)
        'bytesWrittenThisSession': bytesWrittenThisSession!,
      if (discardTimeThisSession != null)
        'discardTimeThisSession': discardTimeThisSession!,
      if (health != null) 'health': health!,
      if (ioTimeThisSession != null) 'ioTimeThisSession': ioTimeThisSession!,
      if (manufacturer != null) 'manufacturer': manufacturer!,
      if (model != null) 'model': model!,
      if (readTimeThisSession != null)
        'readTimeThisSession': readTimeThisSession!,
      if (serialNumber != null) 'serialNumber': serialNumber!,
      if (sizeBytes != null) 'sizeBytes': sizeBytes!,
      if (type != null) 'type': type!,
      if (volumeIds != null) 'volumeIds': volumeIds!,
      if (writeTimeThisSession != null)
        'writeTimeThisSession': writeTimeThisSession!,
    };