namespace WireMock.Models; /// /// A structure defining an (optional) Id and a Text. /// public readonly struct IdOrText { /// /// The Id [optional]. /// public string? Id { get; } /// /// The Text. /// public string Text { get; } /// /// When Id is defined, return the Id, else the Text. /// public string Value => Id ?? Text; /// /// Create a IdOrText /// /// The Id [optional] /// The Text. public IdOrText(string? id, string text) { Id = id; Text = text; } }