mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-02 13:55:13 +03:00
33 lines
925 B
Dart
33 lines
925 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'models.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$KeyCustomizationImpl _$$KeyCustomizationImplFromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$KeyCustomizationImpl(
|
|
serial: json['serial'] as int,
|
|
name: json['name'] as String?,
|
|
color: const _ColorConverter().fromJson(json['color'] as int?),
|
|
);
|
|
|
|
Map<String, dynamic> _$$KeyCustomizationImplToJson(
|
|
_$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;
|
|
}
|