ServiceRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const ServiceRecord({
  1. @Default(appBskyLabelerService) @JsonKey(name: r'$type') String $type,
  2. @LabelerPoliciesConverter() required LabelerPolicies policies,
  3. @UServiceLabelConverter() UServiceLabel? labels,
  4. required DateTime createdAt,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ServiceRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.labeler.service`
  @Default(appBskyLabelerService) @JsonKey(name: r'$type') String $type,
  @LabelerPoliciesConverter() required LabelerPolicies policies,
  @UServiceLabelConverter() UServiceLabel? labels,
  required DateTime createdAt,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ServiceRecord;