GetSessionOutput constructor

  1. @JsonSerializable(includeIfNull: false)
const GetSessionOutput({
  1. required String handle,
  2. required String did,
  3. String? email,
  4. @Default(false) bool emailConfirmed,
  5. @Default(false) bool emailAuthFactor,
  6. Map<String, dynamic>? didDoc,
  7. @Default(false) bool active,
  8. @UGetSessionStatusConverter() UGetSessionStatus? status,
  9. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory GetSessionOutput({
  required String handle,
  required String did,
  String? email,
  @Default(false) bool emailConfirmed,
  @Default(false) bool emailAuthFactor,
  Map<String, dynamic>? didDoc,
  @Default(false) bool active,

  /// If active=false, this optional field indicates a possible reason
  /// for why the account is not active. If active=false and no status
  /// is supplied, then the host makes no claim for why the repository
  /// is no longer being hosted.
  @UGetSessionStatusConverter() UGetSessionStatus? status,

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