SuiObjectInfo.fromProto constructor

SuiObjectInfo.fromProto(
  1. Object o
)

Implementation

factory SuiObjectInfo.fromProto(pb.Object o) => SuiObjectInfo(
      objectId: o.objectId,
      version: BigInt.from(o.version.toInt()),
      digest: o.digest,
      type: o.hasObjectType() ? o.objectType : null,
      owner: o.hasOwner() ? SuiOwner.fromProto(o.owner) : null,
    );