first commit

This commit is contained in:
Sas Andy
2025-01-31 10:12:08 +07:00
commit 6554441a4b
180 changed files with 8490 additions and 0 deletions

18
lib/model/booth.dart Normal file
View File

@@ -0,0 +1,18 @@
import 'package:equatable/equatable.dart';
class Booth extends Equatable {
int id;
String name;
String code;
Booth({required this.name, required this.id, required this.code});
Booth.fromJson(Map<String, dynamic> json)
: id = json['id'].runtimeType == int ? json['id'] : int.parse(json['id']),
name = json['name'],
code = json['code'];
Map<String, dynamic> toJson() => {'name': name, 'id': id, 'code': code};
@override
List<Object?> get props => [id];
}