// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_ticker_nav_response.dart';

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

TickerNavResponse _$TickerNavResponseFromJson(Map<String, dynamic> json) =>
    TickerNavResponse(
      schemaVersion: (json['schemaVersion'] as num?)?.toInt() ?? 1,
      navHash: json['navHash'] as String? ?? '',
      sections:
          (json['sections'] as List<dynamic>?)
              ?.map((e) => TickerNavSection.fromJson(e as Map<String, dynamic>))
              .toList() ??
          [],
    );

Map<String, dynamic> _$TickerNavResponseToJson(TickerNavResponse instance) =>
    <String, dynamic>{
      'schemaVersion': instance.schemaVersion,
      'navHash': instance.navHash,
      'sections': instance.sections.map((e) => e.toJson()).toList(),
    };

TickerNavSection _$TickerNavSectionFromJson(Map<String, dynamic> json) =>
    TickerNavSection(
      title: json['title'] as String? ?? '',
      pages:
          (json['pages'] as List<dynamic>?)
              ?.map((e) => TickerNavPage.fromJson(e as Map<String, dynamic>))
              .toList() ??
          [],
    );

Map<String, dynamic> _$TickerNavSectionToJson(TickerNavSection instance) =>
    <String, dynamic>{
      'title': instance.title,
      'pages': instance.pages.map((e) => e.toJson()).toList(),
    };

TickerNavPage _$TickerNavPageFromJson(Map<String, dynamic> json) =>
    TickerNavPage(
      title: json['title'] as String? ?? '',
      slug: json['slug'] as String? ?? '',
      kind: json['kind'] as String? ?? 'CONTENT',
      hash: json['hash'] as String?,
      externalUrl: json['externalUrl'] as String?,
      externalUrlNewTab: json['externalUrlNewTab'] as bool?,
      fileUrl: json['fileUrl'] as String?,
    );

Map<String, dynamic> _$TickerNavPageToJson(TickerNavPage instance) =>
    <String, dynamic>{
      'title': instance.title,
      'slug': instance.slug,
      'kind': instance.kind,
      'hash': instance.hash,
      'externalUrl': instance.externalUrl,
      'externalUrlNewTab': instance.externalUrlNewTab,
      'fileUrl': instance.fileUrl,
    };
