2024-01-24 12:57:23 +03:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'models.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
_$KeyCustomizationImpl _$$KeyCustomizationImplFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
_$KeyCustomizationImpl(
|
2024-07-09 12:33:41 +03:00
|
|
|
serial: (json['serial'] as num).toInt(),
|
2024-01-24 13:14:55 +03:00
|
|
|
name: json['name'] as String?,
|
2024-07-09 12:33:41 +03:00
|
|
|
color: const _ColorConverter().fromJson((json['color'] as num?)?.toInt()),
|
2024-01-24 12:57:23 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$KeyCustomizationImplToJson(
|
2024-01-24 14:35:09 +03:00
|
|
|
_$KeyCustomizationImpl instance) {
|
|
|
|
final val = <String, dynamic>{
|
|
|
|
'serial': instance.serial,
|
|
|
|
};
|
|
|
|
|
|
|
|
void writeNotNull(String key, dynamic value) {
|
|
|
|
if (value != null) {
|
|
|
|
val[key] = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
writeNotNull('name', instance.name);
|
|
|
|
writeNotNull('color', const _ColorConverter().toJson(instance.color));
|
|
|
|
return val;
|
|
|
|
}
|