rename package folders

This commit is contained in:
Salvatore Giordano
2021-02-01 15:45:58 +01:00
parent 6682ad5e8b
commit 964a428f2e
445 changed files with 1 additions and 343 deletions
@@ -0,0 +1,30 @@
import 'package:json_annotation/json_annotation.dart';
part 'command.g.dart';
/// The class that contains the information about a command
@JsonSerializable()
class Command {
/// The name of the command
final String name;
/// The description explaining the command
final String description;
/// The arguments of the command
final String args;
/// Constructor used for json serialization
Command({
this.name,
this.description,
this.args,
});
/// Create a new instance from a json
factory Command.fromJson(Map<String, dynamic> json) =>
_$CommandFromJson(json);
/// Serialize to json
Map<String, dynamic> toJson() => _$CommandToJson(this);
}