// GENERATED CODE - DO NOT MODIFY BY HAND part of 'chat_background_settings.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ChatBackgroundSettings _$ChatBackgroundSettingsFromJson( Map json, ) => $checkedCreate('ChatBackgroundSettings', json, ($checkedConvert) { final val = ChatBackgroundSettings( type: $checkedConvert( 'type', (v) => $enumDecode(_$ChatBackgroundTypeEnumMap, v), ), fit: $checkedConvert( 'fit', (v) => $enumDecode(_$ChatBackgroundFitEnumMap, v), ), colorValue: $checkedConvert('colorValue', (v) => (v as num?)?.toInt()), imageVersion: $checkedConvert('imageVersion', (v) => (v as num).toInt()), dim: $checkedConvert('dim', (v) => (v as num).toDouble()), blur: $checkedConvert('blur', (v) => (v as num).toDouble()), ); return val; }); Map _$ChatBackgroundSettingsToJson( ChatBackgroundSettings instance, ) => { 'type': _$ChatBackgroundTypeEnumMap[instance.type]!, 'fit': _$ChatBackgroundFitEnumMap[instance.fit]!, 'colorValue': instance.colorValue, 'imageVersion': instance.imageVersion, 'dim': instance.dim, 'blur': instance.blur, }; const _$ChatBackgroundTypeEnumMap = { ChatBackgroundType.pattern: 'pattern', ChatBackgroundType.image: 'image', ChatBackgroundType.color: 'color', ChatBackgroundType.none: 'none', }; const _$ChatBackgroundFitEnumMap = { ChatBackgroundFit.cover: 'cover', ChatBackgroundFit.tile: 'tile', ChatBackgroundFit.center: 'center', };