ValidationResponse<T> constructor
ValidationResponse<T> ({
- required ValidationRequest<
T> request, - required T? value,
- required ValidationResult result,
- Map<
String, dynamic> ? additionalHeaders, - int? statusCode,
- ContentType? contentType,
Implementation
ValidationResponse(
{required ValidationRequest<T> request,
required this.value,
required ValidationResult result,
Map<String, dynamic>? additionalHeaders,
int? statusCode,
ContentType? contentType})
: super._(null,
request: request,
validationData: value,
additionalHeaders: (additionalHeaders ?? <String, dynamic>{})
..addAll(result.headers ?? {}),
contentType: contentType,
statusCode: statusCode ?? result.statusCode);