APIAction constructor

APIAction({
  1. required String url,
  2. required String method,
  3. Map<String, dynamic>? payload,
  4. Map<String, String>? headers,
  5. String? dataKey,
  6. String? type,
})

Implementation

APIAction(
    {required this.url,
    required this.method,
    this.payload,
    this.headers,
    this.dataKey,
    String? type})
    : super(actionType: type ?? ActionTypeConstants.apiAction);