You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
992 B
37 lines
992 B
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'info.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
Info _$InfoFromJson(Map<String, dynamic> json) { |
|
$checkKeys( |
|
json, |
|
allowedKeys: const ['title', 'version', 'license', 'description'], |
|
); |
|
return Info( |
|
title: json['title'] as String, |
|
version: json['version'] as String, |
|
license: License.fromJson(json['license'] as Map<String, dynamic>), |
|
description: json['description'] as String?, |
|
); |
|
} |
|
|
|
Map<String, dynamic> _$InfoToJson(Info instance) { |
|
final val = <String, dynamic>{ |
|
'title': instance.title, |
|
'version': instance.version, |
|
'license': instance.license.toJson(), |
|
}; |
|
|
|
void writeNotNull(String key, dynamic value) { |
|
if (value != null) { |
|
val[key] = value; |
|
} |
|
} |
|
|
|
writeNotNull('description', instance.description); |
|
return val; |
|
}
|
|
|