Account constructor

Account({
  1. User? user,
  2. String? wallet,
  3. String? email,
  4. Iterable<AccountDevice>? devices,
  5. String? customId,
  6. Timestamp? verifyTime,
  7. Timestamp? disableTime,
})

Implementation

factory Account({
  User? user,
  $core.String? wallet,
  $core.String? email,
  $core.Iterable<AccountDevice>? devices,
  $core.String? customId,
  $0.Timestamp? verifyTime,
  $0.Timestamp? disableTime,
}) {
  final _result = create();
  if (user != null) {
    _result.user = user;
  }
  if (wallet != null) {
    _result.wallet = wallet;
  }
  if (email != null) {
    _result.email = email;
  }
  if (devices != null) {
    _result.devices.addAll(devices);
  }
  if (customId != null) {
    _result.customId = customId;
  }
  if (verifyTime != null) {
    _result.verifyTime = verifyTime;
  }
  if (disableTime != null) {
    _result.disableTime = disableTime;
  }
  return _result;
}