Model constructor

Model({
  1. Int64? id,
  2. String? action,
  3. String? content,
  4. String? sender,
  5. String? receiver,
  6. String? extra,
  7. String? title,
  8. String? format,
  9. Int64? timestamp,
})

Implementation

factory Model({
  $fixnum.Int64? id,
  $core.String? action,
  $core.String? content,
  $core.String? sender,
  $core.String? receiver,
  $core.String? extra,
  $core.String? title,
  $core.String? format,
  $fixnum.Int64? timestamp,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (action != null) {
    _result.action = action;
  }
  if (content != null) {
    _result.content = content;
  }
  if (sender != null) {
    _result.sender = sender;
  }
  if (receiver != null) {
    _result.receiver = receiver;
  }
  if (extra != null) {
    _result.extra = extra;
  }
  if (title != null) {
    _result.title = title;
  }
  if (format != null) {
    _result.format = format;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  return _result;
}