getEvent method

Future<XRPCResponse<ModEventViewDetail>> getEvent({
  1. required int id,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. GetClient? $client,
})

Implementation

Future<XRPCResponse<ModEventViewDetail>> getEvent({
  required int id,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<ModEventViewDetail>(
      ns.toolsOzoneModerationGetEvent,
      headers: $headers,
      parameters: {
        'id': id.toString(),
        ...?$unknown,
      },
      to: const ModEventViewDetailConverter().fromJson,
      client: $client,
    );