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>? clientRoles,
  12. AccountProto_ActivationStatuses? status,
  13. bool? deleted,
  14. Int64? clientId,
  15. LocalAccountProto_AccountTypes? type,
  16. String? clientName,
})

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,
  $3.Timestamp? expiredAt,
  $core.Iterable<$1.AccountProto_Roles>? clientRoles,
  $1.AccountProto_ActivationStatuses? status,
  $core.bool? deleted,
  $fixnum.Int64? clientId,
  LocalAccountProto_AccountTypes? type,
  $core.String? clientName,
}) {
  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 (clientRoles != null) result.clientRoles.addAll(clientRoles);
  if (status != null) result.status = status;
  if (deleted != null) result.deleted = deleted;
  if (clientId != null) result.clientId = clientId;
  if (type != null) result.type = type;
  if (clientName != null) result.clientName = clientName;
  return result;
}