ServerInfo class

Annotations
  • @freezed

Constructors

ServerInfo({required List<String> availableUserDomains, required String did, @JsonKey(name: 'inviteCodeRequired') @Default(false) bool isInviteCodeRequired, ServerInfoContact? contact, ServerInfoLinks? links})
const
factory
ServerInfo.fromJson(Map<String, Object?> json)
Creates a new instance of ServerInfo from a JSON object.
factory

Properties

availableUserDomains List<String>
no setterinherited
contact ServerInfoContact?
no setterinherited
copyWith → $ServerInfoCopyWith<ServerInfo>
Create a copy of ServerInfo with the given fields replaced by the non-null parameter values.
no setterinherited
did String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isInviteCodeRequired bool
no setterinherited
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ServerInfo to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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