Identity constructor

  1. @JsonSerializable(includeIfNull: false)
const Identity({
  1. @Default(comAtprotoSyncSubscribeReposIdentity) @JsonKey(name: r'$type') String $type,
  2. required int seq,
  3. required String did,
  4. required DateTime time,
  5. String? handle,
  6. @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;