toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final lastAccessTime = this.lastAccessTime;
  final lastAnalyzedTime = this.lastAnalyzedTime;
  final parameters = this.parameters;
  final storageDescriptor = this.storageDescriptor;
  final values = this.values;
  return {
    if (lastAccessTime != null)
      'LastAccessTime': unixTimestampToJson(lastAccessTime),
    if (lastAnalyzedTime != null)
      'LastAnalyzedTime': unixTimestampToJson(lastAnalyzedTime),
    if (parameters != null) 'Parameters': parameters,
    if (storageDescriptor != null) 'StorageDescriptor': storageDescriptor,
    if (values != null) 'Values': values,
  };
}