import 'package:dynamite/src/models/license.dart'; import 'package:json_annotation/json_annotation.dart'; part 'info.g.dart'; @JsonSerializable() class Info { Info({ required this.title, required this.version, required this.description, required this.license, }); factory Info.fromJson(final Map json) => _$InfoFromJson(json); Map toJson() => _$InfoToJson(this); final String title; final String version; final String? description; final License license; }