Host constructor

  1. @JsonSerializable(includeIfNull: false)
const Host({
  1. @Default('com.atproto.sync.listHosts#host') String $type,
  2. required String hostname,
  3. int? seq,
  4. int? accountCount,
  5. @HostStatusConverter() HostStatus? status,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Host({
  @Default('com.atproto.sync.listHosts#host') String $type,

  /// hostname of server; not a URL (no scheme)
  required String hostname,

  /// Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
  int? seq,
  int? accountCount,
  @HostStatusConverter() HostStatus? status,

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