SendResponseModel constructor

SendResponseModel({
  1. @Default('') String url,
  2. @Default('') String method,
  3. dynamic data,
  4. @Default({}) Map<String, dynamic> queryParams,
  5. @Default(0) int statusCode,
  6. @JsonKey(toJson: _toJsonByData) dynamic body,
  7. @Default({}) Map<String, dynamic> headers,
  8. @Default({}) Map<String, dynamic> responseHeaders,
  9. @Default(0) int timestamp,
  10. @Default('') String projectName,
  11. @JsonKey(toJson: null, fromJson: null, includeFromJson: false, includeToJson: false) Response? response,
  12. @Default([]) List<String> extendNotes,
})

Implementation

factory SendResponseModel(
    {@Default('') String url,
    @Default('') String method,
    dynamic data,
    @Default({}) Map<String, dynamic> queryParams,
    @Default(0) int statusCode,
    @JsonKey(toJson: _toJsonByData) dynamic body,
    @Default({}) Map<String, dynamic> headers,
    @Default({}) Map<String, dynamic> responseHeaders,
    @Default(0) int timestamp,
    @Default('') String projectName,
    @JsonKey(
        toJson: null,
        fromJson: null,
        includeFromJson: false,
        includeToJson: false)
    Response? response,
    @Default([]) List<String> extendNotes}) = _SendResponseModel;