ServerInfo constructor

  1. @jsonSerializable
const ServerInfo({
  1. required List<String> availableUserDomains,
  2. required String did,
  3. @JsonKey(name: 'inviteCodeRequired') @Default(false) bool isInviteCodeRequired,
  4. ServerInfoContact? contact,
  5. ServerInfoLinks? links,
})

Implementation

@jsonSerializable
const factory ServerInfo({
  required List<String> availableUserDomains,
  required String did,
  @JsonKey(name: 'inviteCodeRequired')
  @Default(false)
  bool isInviteCodeRequired,
  ServerInfoContact? contact,
  ServerInfoLinks? links,
}) = _ServerInfo;