using System.Runtime.Serialization; namespace Models { /// /// An ingredient /// /// The ingredient's name /// The ingredient's amount (in kilograms or liters) [DataContract] public record Ingredient([property: DataMember] string Name, [property: DataMember] float Amount, [property: DataMember] string Unit); }