toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (autoDelete != null) 'autoDelete': autoDelete!,
      if (boot != null) 'boot': boot!,
      if (deviceName != null) 'deviceName': deviceName!,
      if (diskEncryptionKey != null) 'diskEncryptionKey': diskEncryptionKey!,
      if (diskInterface != null) 'diskInterface': diskInterface!,
      if (diskSizeGb != null) 'diskSizeGb': diskSizeGb!,
      if (diskType != null) 'diskType': diskType!,
      if (diskTypeDeprecated != null)
        'diskTypeDeprecated': diskTypeDeprecated!,
      if (guestOsFeature != null) 'guestOsFeature': guestOsFeature!,
      if (index != null) 'index': index!,
      if (initializeParams != null) 'initializeParams': initializeParams!,
      if (kind != null) 'kind': kind!,
      if (license != null) 'license': license!,
      if (mode != null) 'mode': mode!,
      if (savedState != null) 'savedState': savedState!,
      if (source != null) 'source': source!,
      if (type != null) 'type': type!,
    };