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.
35 lines
868 B
35 lines
868 B
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'license.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
License _$LicenseFromJson(Map<String, dynamic> json) { |
|
$checkKeys( |
|
json, |
|
allowedKeys: const ['name', 'identifier', 'url'], |
|
); |
|
return License( |
|
name: json['name'] as String, |
|
identifier: json['identifier'] as String?, |
|
url: json['url'] as String?, |
|
); |
|
} |
|
|
|
Map<String, dynamic> _$LicenseToJson(License instance) { |
|
final val = <String, dynamic>{ |
|
'name': instance.name, |
|
}; |
|
|
|
void writeNotNull(String key, dynamic value) { |
|
if (value != null) { |
|
val[key] = value; |
|
} |
|
} |
|
|
|
writeNotNull('identifier', instance.identifier); |
|
writeNotNull('url', instance.url); |
|
return val; |
|
}
|
|
|