MiniProgramPublisherBackendSmokeCase constructor

MiniProgramPublisherBackendSmokeCase({
  1. required String id,
  2. String method = 'GET',
  3. required String endpoint,
  4. Map<String, Object?> body = const <String, Object?>{},
  5. MiniProgramPublisherBackendSmokeExpectation? expectation,
})

Creates a provider-neutral smoke-test route.

Implementation

MiniProgramPublisherBackendSmokeCase({
  required String id,
  String method = 'GET',
  required String endpoint,
  Map<String, Object?> body = const <String, Object?>{},
  MiniProgramPublisherBackendSmokeExpectation? expectation,
}) : id = _normalizeSafeId(id, 'id'),
     method = _normalizeMethod(method),
     endpoint = _normalizeRelativeEndpoint(endpoint, 'endpoint'),
     body = Map.unmodifiable(_normalizeBody(body)),
     expectation = _normalizeExpectation(
       expectation ?? const MiniProgramPublisherBackendSmokeExpectation(),
     );