Appboy.Models.Cards.TextAnnouncementCard.TextAnnouncementCard C# (CSharp) Method

TextAnnouncementCard() public method

public TextAnnouncementCard ( Appboy.Utilities.JSONClass json ) : System
json Appboy.Utilities.JSONClass
return System
        public TextAnnouncementCard(JSONClass json)
            : base(json)
        {
            if (json["title"] == null || json["description"] == null) {
            throw new ArgumentException("Missing required field(s).");
              }
              Title = json["title"];
              Description = json["description"];
              if (json["url"] != null) {
            Url = json["url"];
              }
              if (json["domain"] != null) {
            Domain = json["domain"];
              }
        }