Member constructor

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

Implementation

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