// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'icon_library.dart';

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

_IconEntry _$IconEntryFromJson(Map<String, dynamic> json) => _IconEntry(
  name: json['name'] == null ? '' : _stringOrEmpty(json['name']),
  url: json['url'] == null ? '' : _stringOrEmpty(json['url']),
);

Map<String, dynamic> _$IconEntryToJson(_IconEntry instance) =>
    <String, dynamic>{'name': instance.name, 'url': instance.url};

_IconLibrary _$IconLibraryFromJson(Map<String, dynamic> json) => _IconLibrary(
  sourceUrl: json['sourceUrl'] as String,
  name: json['name'] == null ? '' : _stringOrEmpty(json['name']),
  description: json['description'] == null
      ? ''
      : _stringOrEmpty(json['description']),
  icons:
      (json['icons'] as List<dynamic>?)
          ?.map((e) => IconEntry.fromJson(e as Map<String, dynamic>))
          .toList() ??
      const <IconEntry>[],
);

Map<String, dynamic> _$IconLibraryToJson(_IconLibrary instance) =>
    <String, dynamic>{
      'sourceUrl': instance.sourceUrl,
      'name': instance.name,
      'description': instance.description,
      'icons': instance.icons,
    };
