ProfileViewBasic constructor

const ProfileViewBasic({
  1. @Default.new('chat.sprk.actor.defs#profileViewBasic') String $type,
  2. required String did,
  3. required String handle,
  4. String? displayName,
  5. String? avatar,
  6. @ProfileAssociatedConverter() ProfileAssociated? associated,
  7. @ViewerStateConverter() ViewerState? viewer,
  8. @LabelConverter.new() List<Label>? labels,
  9. DateTime? createdAt,
  10. @RepoStrongRefConverter.new() List<RepoStrongRef>? stories,
  11. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ProfileViewBasic({
  @Default('chat.sprk.actor.defs#profileViewBasic') String $type,
  required String did,
  required String handle,
  String? displayName,
  String? avatar,
  @ProfileAssociatedConverter() ProfileAssociated? associated,
  @ViewerStateConverter() ViewerState? viewer,
  @LabelConverter() List<Label>? labels,
  DateTime? createdAt,
  @RepoStrongRefConverter() List<RepoStrongRef>? stories,

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