mirror of
https://github.com/felixblaschke/shelf_plus.git
synced 2025-08-03 17:43:18 +08:00
11 lines
224 B
Dart
11 lines
224 B
Dart
class Person {
|
|
final String name;
|
|
|
|
Person({required this.name});
|
|
|
|
// created with tools like json_serializable package
|
|
static Person fromJson(Map<String, dynamic> json) {
|
|
return Person(name: json['name']);
|
|
}
|
|
}
|