ServerConfig class

The configuration for a single server

Annotations
  • @JsonSerializable()

Constructors

ServerConfig.new({ServerType? type, String? hostname, int? port, SocketType? socketType, Authentication? authentication, UsernameType? usernameType})
Creates a new server configuration
ServerConfig.fromJson(Map<String, dynamic> json)
Creates a new ServerConfig from the given json
factory

Properties

authentication Authentication?
The used main authentication mechanism
getter/setter pair
authenticationAlternative Authentication?
The used secondary authentication mechanism
getter/setter pair
authenticationAlternativeName String?
The name of the secondary authentication
getter/setter pair
authenticationName String?
The name of the main authentication
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hostname String?
The host
getter/setter pair
isSecureSocket bool
Retrieves true when this server uses a secure connection
no setter
port int?
The port
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socketType SocketType?
The connection security
getter/setter pair
socketTypeName String
The name of the connection security
getter/setter pair
type ServerType?
The server type
getter/setter pair
typeName String
The name of the server type
getter/setter pair
username String
The name of the username configuration
getter/setter pair
usernameType UsernameType?
The username configuration
getter/setter pair

Methods

getUserName(String email) String?
Retrieves the user name based on the specified email address. Returns null in case usernameType is UsernameType.realName or UsernameType.unknown.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Generates json from this ServerConfig
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override