14 lines
247 B
Dart
14 lines
247 B
Dart
class Entity {
|
|
final String id;
|
|
final String name;
|
|
|
|
const Entity({
|
|
required this.id,
|
|
required this.name,
|
|
});
|
|
|
|
Entity.fromJson(Map<String, dynamic> json)
|
|
: id = json["id"] as String,
|
|
name = json["name"] as String;
|
|
}
|