LocalAccountProto constructor

LocalAccountProto({
  1. Int64? id,
  2. String? email,
  3. String? phone,
  4. String? lastName,
  5. String? firstName,
  6. String? locale,
  7. String? company,
  8. String? groupId,
  9. bool? enabled,
  10. Timestamp? expiredAt,
  11. Iterable<AccountProto_Roles>? assignedRoles,
  12. AccountProto_ActivationStatuses? status,
})

Implementation

factory LocalAccountProto({
  $fixnum.Int64? id,
  $core.String? email,
  $core.String? phone,
  $core.String? lastName,
  $core.String? firstName,
  $core.String? locale,
  $core.String? company,
  $core.String? groupId,
  $core.bool? enabled,
  $27.Timestamp? expiredAt,
  $core.Iterable<$2.AccountProto_Roles>? assignedRoles,
  $2.AccountProto_ActivationStatuses? status,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (email != null) {
    $result.email = email;
  }
  if (phone != null) {
    $result.phone = phone;
  }
  if (lastName != null) {
    $result.lastName = lastName;
  }
  if (firstName != null) {
    $result.firstName = firstName;
  }
  if (locale != null) {
    $result.locale = locale;
  }
  if (company != null) {
    $result.company = company;
  }
  if (groupId != null) {
    $result.groupId = groupId;
  }
  if (enabled != null) {
    $result.enabled = enabled;
  }
  if (expiredAt != null) {
    $result.expiredAt = expiredAt;
  }
  if (assignedRoles != null) {
    $result.assignedRoles.addAll(assignedRoles);
  }
  if (status != null) {
    $result.status = status;
  }
  return $result;
}