AcManager.Tools.AcObjectsNew.AcJsonObjectNew.LoadCountry C# (CSharp) Method

LoadCountry() protected method

protected LoadCountry ( JObject json ) : void
json JObject
return void
        protected void LoadCountry(JObject json) {
            var value = json.GetStringValueOnly("country")?.Trim();
            Country = value != null ? AcStringValues.CountryFromTag(value) ?? value :
                Tags.Select(AcStringValues.CountryFromTag).FirstOrDefault(x => x != null);
        }