Member constructor

Member({
  1. String? id,
  2. String? userId,
  3. MemberType? type,
  4. Timestamp? createdAt,
  5. Timestamp? updatedAt,
  6. String? organizationId,
  7. String? email,
})

Implementation

factory Member({
  $core.String? id,
  $core.String? userId,
  MemberType? type,
  $3.Timestamp? createdAt,
  $3.Timestamp? updatedAt,
  $core.String? organizationId,
  $core.String? email,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (type != null) {
    _result.type = type;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (organizationId != null) {
    _result.organizationId = organizationId;
  }
  if (email != null) {
    _result.email = email;
  }
  return _result;
}