Collaboration constructor

Collaboration({
  1. String? id,
  2. String? userId,
  3. String? objectId,
  4. CollaborationType? collaborationType,
  5. bool? accepted,
  6. String? hashedCode,
  7. Timestamp? createdAt,
  8. Timestamp? updatedAt,
})

Implementation

factory Collaboration({
  $core.String? id,
  $core.String? userId,
  $core.String? objectId,
  CollaborationType? collaborationType,
  $core.bool? accepted,
  $core.String? hashedCode,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (objectId != null) {
    _result.objectId = objectId;
  }
  if (collaborationType != null) {
    _result.collaborationType = collaborationType;
  }
  if (accepted != null) {
    _result.accepted = accepted;
  }
  if (hashedCode != null) {
    _result.hashedCode = hashedCode;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  return _result;
}