private ArtistAlias ReadArtistAlias(JObject source) { ArtistAlias artistAlias = new ArtistAlias(); foreach (var item in source) { var v = item.Value; switch (item.Key) { case "id": artistAlias.Id = v.Value <int>(); break; case "name": artistAlias.Name = v.Value <string>(); break; case "resource_url": break; default: this.ThrowIfStrict("Unknown key: " + item.Key); break; } } return(artistAlias); }
private ArtistAlias ReadArtistAlias(JObject source) { ArtistAlias artistAlias = new ArtistAlias(); foreach (var item in source) { var v = item.Value; switch (item.Key) { case "id": artistAlias.Id = v.Value<int>(); break; case "name": artistAlias.Name = v.Value<string>(); break; case "resource_url": break; default: this.ThrowIfStrict("Unknown key: " + item.Key); break; } } return artistAlias; }