CustomModel constructor

CustomModel({
  1. required String url,
  2. required Map<String, String> customHeaders,
  3. required Map<String, dynamic> requestBuilder(
    1. String code,
    2. String instruction
    )?,
  4. required String customParser(
    1. dynamic response
    ),
  5. String httpMethod = 'POST',
})

Implementation

CustomModel({
  required this.url,
  required this.customHeaders,
  required this.requestBuilder,
  required this.customParser,
  this.httpMethod = 'POST',
});