HttpResponseModel constructor

  1. @JsonSerializable(explicitToJson: true, anyMap: true)
const HttpResponseModel({
  1. int? statusCode,
  2. Map<String, String>? headers,
  3. Map<String, String>? requestHeaders,
  4. String? body,
  5. String? formattedBody,
  6. @Uint8ListConverter() Uint8List? bodyBytes,
  7. @DurationConverter() Duration? time,
  8. List<String>? sseOutput,
})

Implementation

@JsonSerializable(explicitToJson: true, anyMap: true)
const factory HttpResponseModel({
  int? statusCode,
  Map<String, String>? headers,
  Map<String, String>? requestHeaders,
  String? body,
  String? formattedBody,
  @Uint8ListConverter() Uint8List? bodyBytes,
  @DurationConverter() Duration? time,
  List<String>? sseOutput,
}) = _HttpResponseModel;