Data.fromJson constructor
Implementation
factory Data.fromJson(Map<String, dynamic> json) => Data(
id: json["_id"],
name: json["name"],
clientId: json["clientId"],
gameId: json["gameId"],
status: json["status"],
description: json["description"],
platform: json["platform"],
nudges: List<Nudge>.from(json["popups"].map((x) => Nudge.fromJson(x))),
delay: Delay.fromJson(json["delay"]),
entryUrl: json["entryUrl"],
createdAt: DateTime.parse(json["createdAt"]),
updatedAt: DateTime.parse(json["updatedAt"]),
v: json["__v"],
);