methodDescriptor top-level property

XRPCMethodDescriptor<EmptyData, EmptyData, ServerRefreshSessionOutput> methodDescriptor
final

Implementation

final methodDescriptor =
    XRPCMethodDescriptor<EmptyData, EmptyData, ServerRefreshSessionOutput>(
      nsid: NSID.parse('com.atproto.server.refreshSession'),
      kind: XRPCMethodKind.procedure,
      outputFromJson: (json) => const ServerRefreshSessionOutputConverter()
          .fromJson(json.cast<String, dynamic>()),
      outputToJson: const ServerRefreshSessionOutputConverter().toJson,
      errors: const ['AccountTakedown', 'InvalidToken', 'ExpiredToken'],
    );