User constructor

User({
  1. String? id,
  2. String? name,
  3. String? phone,
  4. User_Gender? gender,
  5. String? avatar,
  6. String? bio,
  7. int? birthday,
})

Implementation

factory User({
  $core.String? id,
  $core.String? name,
  $core.String? phone,
  User_Gender? gender,
  $core.String? avatar,
  $core.String? bio,
  $core.int? birthday,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (phone != null) {
    _result.phone = phone;
  }
  if (gender != null) {
    _result.gender = gender;
  }
  if (avatar != null) {
    _result.avatar = avatar;
  }
  if (bio != null) {
    _result.bio = bio;
  }
  if (birthday != null) {
    _result.birthday = birthday;
  }
  return _result;
}