mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
25 lines
626 B
Dart
25 lines
626 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'weight_unit.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
WeightUnit _$WeightUnitFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(
|
|
json,
|
|
requiredKeys: const ['id', 'name'],
|
|
);
|
|
return WeightUnit(
|
|
id: json['id'] as int,
|
|
name: json['name'] as String,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$WeightUnitToJson(WeightUnit instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
};
|