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.
21 lines
415 B
21 lines
415 B
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
part 'license.g.dart'; |
|
|
|
@JsonSerializable() |
|
class License { |
|
License({ |
|
required this.name, |
|
this.identifier, |
|
this.url, |
|
}); |
|
|
|
factory License.fromJson(final Map<String, dynamic> json) => _$LicenseFromJson(json); |
|
Map<String, dynamic> toJson() => _$LicenseToJson(this); |
|
|
|
final String name; |
|
|
|
final String? identifier; |
|
|
|
final String? url; |
|
}
|
|
|