mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
23 lines
712 B
Dart
23 lines
712 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'language.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Language _$LanguageFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(json, requiredKeys: const ['id', 'short_name', 'full_name']);
|
|
return Language(
|
|
id: (json['id'] as num).toInt(),
|
|
shortName: json['short_name'] as String,
|
|
fullName: json['full_name'] as String,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$LanguageToJson(Language instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'short_name': instance.shortName,
|
|
'full_name': instance.fullName,
|
|
};
|