Identity constructor
- @JsonSerializable(includeIfNull: false)
const
Identity(
{ - @Default(comAtprotoSyncSubscribeReposIdentity) @JsonKey(name: r'$type') String $type,
- required int seq,
- required String did,
- required DateTime time,
- String? handle,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Identity({
/// The unique namespace for this lex object.
///
/// `com.atproto.sync.subscribeRepos#identity`
@Default(comAtprotoSyncSubscribeReposIdentity)
@JsonKey(name: r'$type')
String $type,
required int seq,
required String did,
required DateTime time,
/// The current handle for the account, or 'handle.invalid' if
/// validation fails. This field is optional, might have been
/// validated or passed-through from an upstream source. Semantics
/// and behaviors for PDS vs Relay may evolve in the future; see
/// atproto specs for more details.
String? handle,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _Identity;