DescribeServerOutput constructor

  1. @JsonSerializable(includeIfNull: false)
const DescribeServerOutput({
  1. @Default(false) bool inviteCodeRequired,
  2. @Default(false) bool phoneVerificationRequired,
  3. required List<String> availableUserDomains,
  4. @LinksConverter() @Default(Links()) Links links,
  5. @ContactConverter() @Default(Contact()) Contact contact,
  6. required String did,
  7. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory DescribeServerOutput({
  /// If true, an invite code must be supplied to create an account on
  /// this instance.
  @Default(false) bool inviteCodeRequired,

  /// If true, a phone verification token must be supplied to create an
  /// account on this instance.
  @Default(false) bool phoneVerificationRequired,

  /// List of domain suffixes that can be used in account handles.
  required List<String> availableUserDomains,

  /// URLs of service policy documents.
  @LinksConverter() @Default(Links()) Links links,

  /// Contact information
  @ContactConverter() @Default(Contact()) Contact contact,
  required String did,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _DescribeServerOutput;