getMoveObject function

SuiMoveObject? getMoveObject(
  1. dynamic data
)

Implementation

SuiMoveObject? getMoveObject(dynamic data) {
  var suiObject = data is SuiObject ? data : getSuiObjectData(data);
  if (suiObject?.content?.dataType != 'moveObject') {
    return null;
  }
  return suiObject?.content as SuiMoveObject;
}