toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (architecture != null) 'architecture': architecture!,
      if (autoDelete != null) 'autoDelete': autoDelete!,
      if (boot != null) 'boot': boot!,
      if (deviceName != null) 'deviceName': deviceName!,
      if (diskEncryptionKey != null) 'diskEncryptionKey': diskEncryptionKey!,
      if (diskSizeGb != null) 'diskSizeGb': diskSizeGb!,
      if (forceAttach != null) 'forceAttach': forceAttach!,
      if (guestOsFeatures != null) 'guestOsFeatures': guestOsFeatures!,
      if (index != null) 'index': index!,
      if (initializeParams != null) 'initializeParams': initializeParams!,
      if (interface != null) 'interface': interface!,
      if (kind != null) 'kind': kind!,
      if (licenses != null) 'licenses': licenses!,
      if (mode != null) 'mode': mode!,
      if (savedState != null) 'savedState': savedState!,
      if (shieldedInstanceInitialState != null)
        'shieldedInstanceInitialState': shieldedInstanceInitialState!,
      if (source != null) 'source': source!,
      if (type != null) 'type': type!,
    };