Notification constructor

Notification({
  1. String? id,
  2. String? subject,
  3. String? content,
  4. int? code,
  5. String? senderId,
  6. Timestamp? createTime,
  7. bool? persistent,
})

Implementation

factory Notification({
  $core.String? id,
  $core.String? subject,
  $core.String? content,
  $core.int? code,
  $core.String? senderId,
  $0.Timestamp? createTime,
  $core.bool? persistent,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (subject != null) {
    _result.subject = subject;
  }
  if (content != null) {
    _result.content = content;
  }
  if (code != null) {
    _result.code = code;
  }
  if (senderId != null) {
    _result.senderId = senderId;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (persistent != null) {
    _result.persistent = persistent;
  }
  return _result;
}