service method

Future<XRPCResponse<StrongRef>> service({
  1. required LabelerPolicies policies,
  2. SelfLabels? labels,
  3. DateTime? createdAt,
})

Implementation

Future<core.XRPCResponse<atp.StrongRef>> service({
  required LabelerPolicies policies,
  atp.SelfLabels? labels,
  DateTime? createdAt,
}) async =>
    await _ctx.atproto.repo.createRecord(
      collection: ns.appBskyLabelerService,
      rkey: 'self',
      record: {
        'policies': policies.toJson(),
        'labels': labels?.toJson(),
        'createdAt': _ctx.toUtcIso8601String(createdAt),
      },
    );