mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 02:07:00 +08:00
37 lines
1.3 KiB
Dart
37 lines
1.3 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()),
|
|
);
|
|
|
|
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),
|
|
};
|