NotificationRes constructor

NotificationRes({
  1. NotificationRes_type? data,
  2. Timestamp? time,
  3. String? id,
  4. String? from,
  5. String? to,
  6. double? amount,
  7. String? message,
  8. String? bannerImage,
  9. String? headingText,
  10. String? cta,
})

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;
}