// GENERATED CODE - DO NOT MODIFY BY HAND part of 'har_log.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$HarLogImpl _$$HarLogImplFromJson(Map json) => _$HarLogImpl( log: json['log'] == null ? null : Log.fromJson(Map.from(json['log'] as Map)), ); Map _$$HarLogImplToJson(_$HarLogImpl instance) => { if (instance.log?.toJson() case final value?) 'log': value, }; _$LogImpl _$$LogImplFromJson(Map json) => _$LogImpl( version: json['version'] as String?, creator: json['creator'] == null ? null : Creator.fromJson(Map.from(json['creator'] as Map)), entries: (json['entries'] as List?) ?.map((e) => Entry.fromJson(Map.from(e as Map))) .toList(), ); Map _$$LogImplToJson(_$LogImpl instance) => { if (instance.version case final value?) 'version': value, if (instance.creator?.toJson() case final value?) 'creator': value, if (instance.entries?.map((e) => e.toJson()).toList() case final value?) 'entries': value, }; _$CreatorImpl _$$CreatorImplFromJson(Map json) => _$CreatorImpl( name: json['name'] as String?, version: json['version'] as String?, ); Map _$$CreatorImplToJson(_$CreatorImpl instance) => { if (instance.name case final value?) 'name': value, if (instance.version case final value?) 'version': value, }; _$EntryImpl _$$EntryImplFromJson(Map json) => _$EntryImpl( startedDateTime: json['startedDateTime'] as String?, time: (json['time'] as num?)?.toInt(), request: json['request'] == null ? null : Request.fromJson(Map.from(json['request'] as Map)), response: json['response'] == null ? null : Response.fromJson( Map.from(json['response'] as Map)), ); Map _$$EntryImplToJson(_$EntryImpl instance) => { if (instance.startedDateTime case final value?) 'startedDateTime': value, if (instance.time case final value?) 'time': value, if (instance.request?.toJson() case final value?) 'request': value, if (instance.response?.toJson() case final value?) 'response': value, }; _$RequestImpl _$$RequestImplFromJson(Map json) => _$RequestImpl( method: json['method'] as String?, url: json['url'] as String?, httpVersion: json['httpVersion'] as String?, cookies: json['cookies'] as List?, headers: (json['headers'] as List?) ?.map((e) => Header.fromJson(Map.from(e as Map))) .toList(), queryString: (json['queryString'] as List?) ?.map((e) => Query.fromJson(Map.from(e as Map))) .toList(), postData: json['postData'] == null ? null : PostData.fromJson( Map.from(json['postData'] as Map)), headersSize: (json['headersSize'] as num?)?.toInt(), bodySize: (json['bodySize'] as num?)?.toInt(), ); Map _$$RequestImplToJson(_$RequestImpl instance) => { if (instance.method case final value?) 'method': value, if (instance.url case final value?) 'url': value, if (instance.httpVersion case final value?) 'httpVersion': value, if (instance.cookies case final value?) 'cookies': value, if (instance.headers?.map((e) => e.toJson()).toList() case final value?) 'headers': value, if (instance.queryString?.map((e) => e.toJson()).toList() case final value?) 'queryString': value, if (instance.postData?.toJson() case final value?) 'postData': value, if (instance.headersSize case final value?) 'headersSize': value, if (instance.bodySize case final value?) 'bodySize': value, }; _$PostDataImpl _$$PostDataImplFromJson(Map json) => _$PostDataImpl( mimeType: json['mimeType'] as String?, text: json['text'] as String?, params: (json['params'] as List?) ?.map((e) => Param.fromJson(Map.from(e as Map))) .toList(), ); Map _$$PostDataImplToJson(_$PostDataImpl instance) => { if (instance.mimeType case final value?) 'mimeType': value, if (instance.text case final value?) 'text': value, if (instance.params?.map((e) => e.toJson()).toList() case final value?) 'params': value, }; _$ParamImpl _$$ParamImplFromJson(Map json) => _$ParamImpl( name: json['name'] as String?, value: json['value'] as String?, fileName: json['fileName'] as String?, contentType: json['contentType'] as String?, disabled: json['disabled'] as bool?, ); Map _$$ParamImplToJson(_$ParamImpl instance) => { if (instance.name case final value?) 'name': value, if (instance.value case final value?) 'value': value, if (instance.fileName case final value?) 'fileName': value, if (instance.contentType case final value?) 'contentType': value, if (instance.disabled case final value?) 'disabled': value, }; _$QueryImpl _$$QueryImplFromJson(Map json) => _$QueryImpl( name: json['name'] as String?, value: json['value'] as String?, disabled: json['disabled'] as bool?, ); Map _$$QueryImplToJson(_$QueryImpl instance) => { if (instance.name case final value?) 'name': value, if (instance.value case final value?) 'value': value, if (instance.disabled case final value?) 'disabled': value, }; _$HeaderImpl _$$HeaderImplFromJson(Map json) => _$HeaderImpl( name: json['name'] as String?, value: json['value'] as String?, disabled: json['disabled'] as bool?, ); Map _$$HeaderImplToJson(_$HeaderImpl instance) => { if (instance.name case final value?) 'name': value, if (instance.value case final value?) 'value': value, if (instance.disabled case final value?) 'disabled': value, }; _$ResponseImpl _$$ResponseImplFromJson(Map json) => _$ResponseImpl( status: (json['status'] as num?)?.toInt(), statusText: json['statusText'] as String?, httpVersion: json['httpVersion'] as String?, cookies: json['cookies'] as List?, headers: json['headers'] as List?, content: json['content'] == null ? null : Content.fromJson(Map.from(json['content'] as Map)), redirectURL: json['redirectURL'] as String?, headersSize: (json['headersSize'] as num?)?.toInt(), bodySize: (json['bodySize'] as num?)?.toInt(), ); Map _$$ResponseImplToJson(_$ResponseImpl instance) => { if (instance.status case final value?) 'status': value, if (instance.statusText case final value?) 'statusText': value, if (instance.httpVersion case final value?) 'httpVersion': value, if (instance.cookies case final value?) 'cookies': value, if (instance.headers case final value?) 'headers': value, if (instance.content?.toJson() case final value?) 'content': value, if (instance.redirectURL case final value?) 'redirectURL': value, if (instance.headersSize case final value?) 'headersSize': value, if (instance.bodySize case final value?) 'bodySize': value, }; _$ContentImpl _$$ContentImplFromJson(Map json) => _$ContentImpl( size: (json['size'] as num?)?.toInt(), mimeType: json['mimeType'] as String?, ); Map _$$ContentImplToJson(_$ContentImpl instance) => { if (instance.size case final value?) 'size': value, if (instance.mimeType case final value?) 'mimeType': value, };