User constructor

User({
  1. String? uid,
  2. String? nickname,
  3. String? avatar,
  4. String? type,
  5. String? extra,
})

Implementation

factory User({
  $core.String? uid,
  $core.String? nickname,
  $core.String? avatar,
  $core.String? type,
  $core.String? extra,
}) {
  final $result = create();
  if (uid != null) {
    $result.uid = uid;
  }
  if (nickname != null) {
    $result.nickname = nickname;
  }
  if (avatar != null) {
    $result.avatar = avatar;
  }
  if (type != null) {
    $result.type = type;
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}