normalizedTypeToMoveTypeSignature function
dynamic
normalizedTypeToMoveTypeSignature(
- dynamic type
Implementation
dynamic normalizedTypeToMoveTypeSignature(
SuiMoveNormalizedType type
) {
if (type is Map && type['Reference'] != null) {
return {
"ref": '&',
"body": normalizedTypeToMoveTypeSignatureBody(type["Reference"]),
};
}
if (type is Map && type['MutableReference'] != null) {
return {
"ref": '&mut',
"body": normalizedTypeToMoveTypeSignatureBody(type["MutableReference"]),
};
}
return {
"ref": null,
"body": normalizedTypeToMoveTypeSignatureBody(type),
};
}