RestExternalInterface constructor

RestExternalInterface({
  1. required List<GatewayConnection<Gateway<Output, Request, SuccessResponse, SuccessInput>>> gatewayConnections,
  2. required String baseUrl,
  3. Map<String, String> headers = const {},
  4. RestService? restService,
})

Implementation

RestExternalInterface({
  required List<GatewayConnection<Gateway>> gatewayConnections,
  required String baseUrl,
  Map<String, String> headers = const {},
  RestService? restService,
})  : _restService = restService ??
          RestService(
            options: RestServiceOptions(baseUrl: baseUrl, headers: headers),
          ),
      super(gatewayConnections);