normalizedTypeToMoveTypeSignature function

dynamic normalizedTypeToMoveTypeSignature(
  1. 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),
	};
}