using FrostFS.Refs; using FrostFS.SDK.ModelsV2; using Google.Protobuf; namespace FrostFS.SDK.ClientV2.Mappers.GRPC; public static class OwnerIdMapper { public static OwnerID ToGrpcMessage(this OwnerId ownerId) { return new OwnerID { Value = ByteString.CopyFrom(ownerId.ToHash()) }; } public static OwnerId ToModel(this OwnerID ownerId) { return new OwnerId(ownerId.ToString()); } }