GetSessionOutput constructor
- @JsonSerializable(includeIfNull: false)
const
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,
- @UGetSessionStatusConverter() UGetSessionStatus? status,
- @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;