getMovePackageContent function

dynamic getMovePackageContent(
  1. dynamic data
)

Implementation

MovePackageContent? getMovePackageContent(dynamic data) {
  if (data is SuiMovePackage) {
    return data.disassembled;
  }

  final suiObject = getSuiObjectData(data);
  if (suiObject == null || suiObject.content?.dataType != 'package') {
    return null;
  }
  return (suiObject.content as SuiMovePackage).disassembled;
}