private void ConvertThroughProto(NoFilter source) { Com.Daml.Ledger.Api.V1.Filters protoValue = source.ToProto(); var target = Filter.FromProto(protoValue); Assert.True(source == target); }
public static Filter FromProto(Com.Daml.Ledger.Api.V1.Filters filters) { if (filters.Inclusive != null) { return(InclusiveFilter.FromProto(filters.Inclusive)); } return(NoFilter.Instance); }