Nudge.fromJson constructor
Implementation
factory Nudge.fromJson(Map<String, dynamic> json) => Nudge(
type: json["type"],
location: json["location"] == null
? null
: Location.fromJson(json["location"]),
content:
json["content"] == null ? null : Content.fromJson(json["content"]),
media: json["media"] == null ? null : Media.fromJson(json["media"]),
design: json["design"] == null ? null : Design.fromJson(json["design"]),
hasActionButton: json["hasActionButton"],
actionButton: json["actionButton"] == null
? null
: ActionButton.fromJson(json["actionButton"]),
id: json["_id"],
);