Files
apidash/packages/better_networking/lib/models/http_response_model.g.dart
2025-06-29 16:58:52 +05:30

41 lines
1.5 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'http_response_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$HttpResponseModelImpl _$$HttpResponseModelImplFromJson(Map json) =>
_$HttpResponseModelImpl(
statusCode: (json['statusCode'] as num?)?.toInt(),
headers: (json['headers'] as Map?)?.map(
(k, e) => MapEntry(k as String, e as String),
),
requestHeaders: (json['requestHeaders'] as Map?)?.map(
(k, e) => MapEntry(k as String, e as String),
),
body: json['body'] as String?,
formattedBody: json['formattedBody'] as String?,
bodyBytes: const Uint8ListConverter().fromJson(
json['bodyBytes'] as List<int>?,
),
time: const DurationConverter().fromJson((json['time'] as num?)?.toInt()),
sseOutput: (json['sseOutput'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
);
Map<String, dynamic> _$$HttpResponseModelImplToJson(
_$HttpResponseModelImpl instance,
) => <String, dynamic>{
'statusCode': instance.statusCode,
'headers': instance.headers,
'requestHeaders': instance.requestHeaders,
'body': instance.body,
'formattedBody': instance.formattedBody,
'bodyBytes': const Uint8ListConverter().toJson(instance.bodyBytes),
'time': const DurationConverter().toJson(instance.time),
'sseOutput': instance.sseOutput,
};