private void ConvertThroughProto(ArchivedEvent source)
        {
            Com.Daml.Ledger.Api.V1.ArchivedEvent protoValue = source.ToProto();
            ArchivedEvent target = ArchivedEvent.FromProto(protoValue);

            Assert.True(source == target);
        }
        public Com.Daml.Ledger.Api.V1.ArchivedEvent ToProto()
        {
            var archivedEvent = new Com.Daml.Ledger.Api.V1.ArchivedEvent {
                ContractId = ContractId, EventId = EventId, TemplateId = TemplateId.ToProto()
            };

            archivedEvent.WitnessParties.AddRange(WitnessParties);
            return(archivedEvent);
        }
 public static ArchivedEvent FromProto(Com.Daml.Ledger.Api.V1.ArchivedEvent archivedEvent) => new ArchivedEvent(archivedEvent.WitnessParties, archivedEvent.EventId, Identifier.FromProto(archivedEvent.TemplateId), archivedEvent.ContractId);