Identity constructor

  1. @JsonSerializable(includeIfNull: false)
const Identity({
  1. @Default('com.atproto.sync.subscribeRepos#identity') String $type,
  2. required int seq,
  3. required String did,
  4. required DateTime time,
  5. String? handle,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Identity({
  @Default('com.atproto.sync.subscribeRepos#identity') 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,

  Map<String, dynamic>? $unknown,
}) = _Identity;