// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'post_category.dart';

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

_SnPostCategory _$SnPostCategoryFromJson(Map<String, dynamic> json) =>
    _SnPostCategory(
      id: json['id'] as String,
      slug: json['slug'] as String,
      name: json['name'] as String?,
      posts:
          (json['posts'] as List<dynamic>?)
              ?.map((e) => SnPost.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
    );

Map<String, dynamic> _$SnPostCategoryToJson(_SnPostCategory instance) =>
    <String, dynamic>{
      'id': instance.id,
      'slug': instance.slug,
      'name': instance.name,
      'posts': instance.posts.map((e) => e.toJson()).toList(),
    };
