Exemplo n.º 1
0
        internal static EchoArtist FromJson(JToken json)
        {
            if (json == null)
                throw new ArgumentException("Json can not be null.");

            var result = new EchoArtist();
            result.Id = json["id"].Value<string>();
            result.Name = json["name"].Value<string>();

            return result;
        }
Exemplo n.º 2
0
        internal static EchoArtist FromJson(JToken json)
        {
            if (json == null)
            {
                throw new ArgumentException("Json can not be null.");
            }

            var result = new EchoArtist();

            result.Id   = json["id"].Value <string>();
            result.Name = json["name"].Value <string>();

            return(result);
        }