toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'allowUnsafeFilter': ?allowUnsafeFilter,
    'architecture': ?architecture,
    'arn': ?arn,
    'blockDeviceMappings': ?(() { final guardedValue = blockDeviceMappings; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetAmiBlockDeviceMapping, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'bootMode': ?bootMode,
    'creationDate': ?creationDate,
    'deprecationTime': ?deprecationTime,
    'description': ?description,
    'enaSupport': ?enaSupport,
    'executableUsers': ?executableUsers,
    'filters': ?(() { final guardedValue = filters; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetAmiFilter, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'hypervisor': ?hypervisor,
    'id': ?id,
    'imageId': ?imageId,
    'imageLocation': ?imageLocation,
    'imageOwnerAlias': ?imageOwnerAlias,
    'imageType': ?imageType,
    'imdsSupport': ?imdsSupport,
    'includeDeprecated': ?includeDeprecated,
    'kernelId': ?kernelId,
    'lastLaunchedTime': ?lastLaunchedTime,
    'mostRecent': ?mostRecent,
    'name': ?name,
    'nameRegex': ?nameRegex,
    'ownerId': ?ownerId,
    'owners': ?owners,
    'platform': ?platform,
    'platformDetails': ?platformDetails,
    'productCodes': ?(() { final guardedValue = productCodes; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetAmiProductCode, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
    'public': ?public,
    'ramdiskId': ?ramdiskId,
    'region': ?region,
    'rootDeviceName': ?rootDeviceName,
    'rootDeviceType': ?rootDeviceType,
    'rootSnapshotId': ?rootSnapshotId,
    'sriovNetSupport': ?sriovNetSupport,
    'state': ?state,
    'stateReason': ?stateReason,
    'tags': ?tags,
    'tpmSupport': ?tpmSupport,
    'uefiData': ?uefiData,
    'usageOperation': ?usageOperation,
    'virtualizationType': ?virtualizationType,
  };
}