NotificationRes constructor
NotificationRes({})
Implementation
factory NotificationRes({
NotificationRes_type? data,
$2.Timestamp? time,
$core.String? id,
$core.String? from,
$core.String? to,
$core.double? amount,
$core.String? message,
$core.String? bannerImage,
$core.String? headingText,
$core.String? cta,
}) {
final _result = create();
if (data != null) {
_result.data = data;
}
if (time != null) {
_result.time = time;
}
if (id != null) {
_result.id = id;
}
if (from != null) {
_result.from = from;
}
if (to != null) {
_result.to = to;
}
if (amount != null) {
_result.amount = amount;
}
if (message != null) {
_result.message = message;
}
if (bannerImage != null) {
_result.bannerImage = bannerImage;
}
if (headingText != null) {
_result.headingText = headingText;
}
if (cta != null) {
_result.cta = cta;
}
return _result;
}