User constructor

User({
  1. String? id,
  2. String? username,
  3. String? displayName,
  4. String? avatarUrl,
  5. String? langTag,
  6. String? location,
  7. String? timezone,
  8. String? metadata,
  9. String? facebookId,
  10. String? googleId,
  11. String? gamecenterId,
  12. String? steamId,
  13. bool? online,
  14. int? edgeCount,
  15. Timestamp? createTime,
  16. Timestamp? updateTime,
  17. String? facebookInstantGameId,
  18. String? appleId,
})

Implementation

factory User({
  $core.String? id,
  $core.String? username,
  $core.String? displayName,
  $core.String? avatarUrl,
  $core.String? langTag,
  $core.String? location,
  $core.String? timezone,
  $core.String? metadata,
  $core.String? facebookId,
  $core.String? googleId,
  $core.String? gamecenterId,
  $core.String? steamId,
  $core.bool? online,
  $core.int? edgeCount,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
  $core.String? facebookInstantGameId,
  $core.String? appleId,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (username != null) {
    _result.username = username;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (avatarUrl != null) {
    _result.avatarUrl = avatarUrl;
  }
  if (langTag != null) {
    _result.langTag = langTag;
  }
  if (location != null) {
    _result.location = location;
  }
  if (timezone != null) {
    _result.timezone = timezone;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (facebookId != null) {
    _result.facebookId = facebookId;
  }
  if (googleId != null) {
    _result.googleId = googleId;
  }
  if (gamecenterId != null) {
    _result.gamecenterId = gamecenterId;
  }
  if (steamId != null) {
    _result.steamId = steamId;
  }
  if (online != null) {
    _result.online = online;
  }
  if (edgeCount != null) {
    _result.edgeCount = edgeCount;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  if (facebookInstantGameId != null) {
    _result.facebookInstantGameId = facebookInstantGameId;
  }
  if (appleId != null) {
    _result.appleId = appleId;
  }
  return _result;
}