#[allow(dead_code)]
pub fn to_dafny(
value: &aws_sdk_dynamodb::types::Get,
) -> ::dafny_runtime::Rc<
crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::Get,
> {
::dafny_runtime::Rc::new(
crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::Get::Get {
Key: ::dafny_runtime::dafny_runtime_conversions::hashmap_to_dafny_map(&value.key.clone(),
|k| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&k),
|v| crate::deps::com_amazonaws_dynamodb::conversions::attribute_value::to_dafny(v)
,
)
,
TableName: dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&value.table_name),
ProjectionExpression: crate::standard_library_conversions::ostring_to_dafny(&value.projection_expression),
ExpressionAttributeNames:
::dafny_runtime::Rc::new(match &value.expression_attribute_names {
Some(x) => crate::r#_Wrappers_Compile::Option::Some { value :
::dafny_runtime::dafny_runtime_conversions::hashmap_to_dafny_map(x,
|k| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&k),
|v| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&v),
)
},
None => crate::r#_Wrappers_Compile::Option::None {}
})
,
}
)
}
#[allow(dead_code)]
pub fn from_dafny(
dafny_value: ::dafny_runtime::Rc<
crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::Get,
>,
) -> aws_sdk_dynamodb::types::Get {
aws_sdk_dynamodb::types::Get::builder()
.set_key(Some( ::dafny_runtime::dafny_runtime_conversions::dafny_map_to_hashmap(&dafny_value.Key(),
|k: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(k),
|v: &::dafny_runtime::Rc<crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::AttributeValue>| crate::deps::com_amazonaws_dynamodb::conversions::attribute_value::from_dafny(v.clone())
,
)
))
.set_table_name(Some( dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(dafny_value.TableName()) ))
.set_projection_expression(crate::standard_library_conversions::ostring_from_dafny(dafny_value.ProjectionExpression().clone()))
.set_expression_attribute_names(match (*dafny_value.ExpressionAttributeNames()).as_ref() {
crate::r#_Wrappers_Compile::Option::Some { value } =>
Some(
::dafny_runtime::dafny_runtime_conversions::dafny_map_to_hashmap(value,
|k: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(k),
|v: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(v),
)
),
_ => None
}
)
.build()
.unwrap()
}