// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_categories_res_model.dart';

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

GetCategoriesResModel _$GetCategoriesResModelFromJson(
        Map<String, dynamic> json) =>
    GetCategoriesResModel(
      (json['result'] as List<dynamic>)
          .map((e) => GetCategoryItemResModel.fromJson(e))
          .toList(),
    );

Map<String, dynamic> _$GetCategoriesResModelToJson(
        GetCategoriesResModel instance) =>
    <String, dynamic>{
      'result': instance.result,
    };

GetCategoryItemResModel _$GetCategoryItemResModelFromJson(
        Map<String, dynamic> json) =>
    GetCategoryItemResModel(
      json['id'] as int,
      json['parentId'] as String?,
      json['name'] as String?,
      json['code'] as String?,
      json['link'] as String?,
      json['detail'] as String?,
      json['type'] as String?,
      json['status'] as String?,
      json['sortOrder'] as int?,
      json['group'] as int?,
      json['level'] as int?,
      json['createdAt'] as String?,
      json['updatedAt'] as String?,
      json['cover'] as String?,
    );

Map<String, dynamic> _$GetCategoryItemResModelToJson(
        GetCategoryItemResModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'parentId': instance.parentId,
      'name': instance.name,
      'code': instance.code,
      'link': instance.link,
      'detail': instance.detail,
      'type': instance.type,
      'status': instance.status,
      'sortOrder': instance.sortOrder,
      'group': instance.group,
      'level': instance.level,
      'createdAt': instance.createdAt,
      'updatedAt': instance.updatedAt,
      'cover': instance.cover,
    };
