// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'parse.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

MWParseCategoryInfo _$MWParseCategoryInfoFromJson(Map<String, dynamic> json) =>
    MWParseCategoryInfo(
      sortkey: json['sortkey'] as String? ?? "",
      category: json['category'] as String? ?? "",
    );

Map<String, dynamic> _$MWParseCategoryInfoToJson(
        MWParseCategoryInfo instance) =>
    <String, dynamic>{
      'sortkey': instance.sortkey,
      'category': instance.category,
    };

MWParseLangLinkInfo _$MWParseLangLinkInfoFromJson(Map<String, dynamic> json) =>
    MWParseLangLinkInfo(
      lang: json['lang'] as String? ?? "",
      url: json['url'] as String? ?? "",
      langname: json['langname'] as String? ?? "",
      autonym: json['autonym'] as String? ?? "",
      title: json['title'] as String? ?? "",
    );

Map<String, dynamic> _$MWParseLangLinkInfoToJson(
        MWParseLangLinkInfo instance) =>
    <String, dynamic>{
      'lang': instance.lang,
      'url': instance.url,
      'langname': instance.langname,
      'autonym': instance.autonym,
      'title': instance.title,
    };

MWParsePageLinkInfo _$MWParsePageLinkInfoFromJson(Map<String, dynamic> json) =>
    MWParsePageLinkInfo(
      ns: json['ns'] as int? ?? -1,
      title: json['title'] as String? ?? "",
      exists: json['exists'] as bool? ?? false,
    );

Map<String, dynamic> _$MWParsePageLinkInfoToJson(
        MWParsePageLinkInfo instance) =>
    <String, dynamic>{
      'ns': instance.ns,
      'title': instance.title,
      'exists': instance.exists,
    };

MWParseSectionInfo _$MWParseSectionInfoFromJson(Map<String, dynamic> json) =>
    MWParseSectionInfo(
      toclevel: json['toclevel'] as int? ?? -1,
      level: json['level'] as int? ?? -1,
      line: json['line'] as String? ?? "",
      number: json['number'] as String? ?? "",
      index: json['index'] as String? ?? "",
      fromtitle: json['fromtitle'] as String? ?? "",
      byteoffset: json['byteoffset'] as int?,
      anchor: json['anchor'] as String? ?? "",
    );

Map<String, dynamic> _$MWParseSectionInfoToJson(MWParseSectionInfo instance) =>
    <String, dynamic>{
      'toclevel': instance.toclevel,
      'level': instance.level,
      'line': instance.line,
      'number': instance.number,
      'index': instance.index,
      'fromtitle': instance.fromtitle,
      'byteoffset': instance.byteoffset,
      'anchor': instance.anchor,
    };

MWParseInfo _$MWParseInfoFromJson(Map<String, dynamic> json) => MWParseInfo(
      title: json['title'] as String? ?? "",
      pageid: json['pageid'] as int? ?? -1,
      revid: json['revid'] as int? ?? -1,
      text: json['text'] as String? ?? "",
      langlink: (json['langlink'] as List<dynamic>?)
              ?.map((e) =>
                  MWParseLangLinkInfo.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      categories: (json['categories'] as List<dynamic>?)
              ?.map((e) =>
                  MWParseCategoryInfo.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      links: (json['links'] as List<dynamic>?)
              ?.map((e) =>
                  MWParsePageLinkInfo.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      templates: (json['templates'] as List<dynamic>?)
              ?.map((e) =>
                  MWParsePageLinkInfo.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      images: (json['images'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          const [],
      externallinks: (json['externallinks'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          const [],
      sections: (json['sections'] as List<dynamic>?)
              ?.map(
                  (e) => MWParseSectionInfo.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      showtoc: json['showtoc'] as bool? ?? true,
      displaytitle: json['displaytitle'] as String? ?? "",
      modules: (json['modules'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          const [],
      modulescripts: (json['modulescripts'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          const [],
      modulestyles: (json['modulestyles'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          const [],
      jsconfigvars: json['jsconfigvars'] as Map<String, dynamic>? ?? const {},
      iwlinks: json['iwlinks'] as Map<String, dynamic>? ?? const {},
      properties: json['properties'] as Map<String, dynamic>? ?? const {},
    );

Map<String, dynamic> _$MWParseInfoToJson(MWParseInfo instance) =>
    <String, dynamic>{
      'title': instance.title,
      'pageid': instance.pageid,
      'revid': instance.revid,
      'text': instance.text,
      'langlink': instance.langlink,
      'categories': instance.categories,
      'links': instance.links,
      'templates': instance.templates,
      'images': instance.images,
      'externallinks': instance.externallinks,
      'sections': instance.sections,
      'showtoc': instance.showtoc,
      'displaytitle': instance.displaytitle,
      'modules': instance.modules,
      'modulescripts': instance.modulescripts,
      'modulestyles': instance.modulestyles,
      'jsconfigvars': instance.jsconfigvars,
      'iwlinks': instance.iwlinks,
      'properties': instance.properties,
    };

MWParseResponse _$MWParseResponseFromJson(Map<String, dynamic> json) =>
    MWParseResponse(
      parse: MWParseInfo.fromJson(json['parse'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$MWParseResponseToJson(MWParseResponse instance) =>
    <String, dynamic>{
      'parse': instance.parse,
    };