save before flutter upgrade

This commit is contained in:
Abraham
2025-07-15 16:40:14 -07:00
commit 813c586a1c
197 changed files with 11144 additions and 0 deletions

23
lib/models/state.dart Normal file
View File

@@ -0,0 +1,23 @@
import 'dart:convert';
class StateAPI {
StateAPI({
required this.id,
required this.code,
required this.name,
});
int id;
String code;
String name;
factory StateAPI.fromJson(String str) => StateAPI.fromMap(json.decode(str));
factory StateAPI.fromMap(Map<String, dynamic> json) {
return StateAPI(
id: json["state_id"],
code: json['code'],
name: json['name'],
);
}
}