WebHookData.fromJson constructor
WebHookData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WebHookData.fromJson(Map<String, dynamic> json) => WebHookData(
id: json["id"] == null ? null : json["id"],
merchantId: json["merchant_id"] == null ? null : json["merchant_id"],
event: json["event"] == null ? null : json["event"],
url: json["url"] == null ? null : json["url"],
status: json["status"] == null ? null : json["status"],
deletedAt: json["deleted_at"],
createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]),
updatedAt: json["updated_at"] == null ? null : DateTime.parse(json["updated_at"]),
);