voyagehandbook/lib/api/classes.g.dart

56 lines
1.7 KiB
Dart
Raw Normal View History

2023-03-18 16:55:08 +01:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'classes.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SearchResponse _$SearchResponseFromJson(Map<String, dynamic> json) =>
SearchResponse(
json['id'] as int,
json['key'] as String,
json['title'] as String,
json['excerpt'] as String,
2023-03-27 19:45:57 +02:00
json['description'] as String?,
2023-03-18 16:55:08 +01:00
);
Map<String, dynamic> _$SearchResponseToJson(SearchResponse instance) =>
<String, dynamic>{
'id': instance.id,
'key': instance.key,
'title': instance.title,
'excerpt': instance.excerpt,
'description': instance.description,
};
2023-03-24 23:48:55 +01:00
LicenseAttribution _$LicenseAttributionFromJson(Map<String, dynamic> json) =>
LicenseAttribution(
json['url'] as String,
json['title'] as String,
);
Map<String, dynamic> _$LicenseAttributionToJson(LicenseAttribution instance) =>
<String, dynamic>{
'url': instance.url,
'title': instance.title,
};
RawPage _$RawPageFromJson(Map<String, dynamic> json) => RawPage(
json['id'] as int,
json['key'] as String,
json['title'] as String,
RawPage._editedFromJson(json['latest'] as Map<String, dynamic>),
json['html'] as String,
LicenseAttribution.fromJson(json['license'] as Map<String, dynamic>),
);
Map<String, dynamic> _$RawPageToJson(RawPage instance) => <String, dynamic>{
'id': instance.id,
'key': instance.key,
'title': instance.title,
'latest': RawPage._editedToJson(instance.edited),
'html': instance.html,
'license': instance.license,
};