feat: Refactor code structure and optimize performance across multiple modules

This commit is contained in:
Achintha Isuru
2025-11-17 23:29:28 -05:00
parent 831570f2e0
commit a64cbd9edf
1508 changed files with 105319 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import 'package:flutter/foundation.dart';
@immutable
class MobilityModel {
const MobilityModel({
required this.hasACar,
required this.canRelocate,
});
factory MobilityModel.fromJson(Map<String, dynamic> json) {
return MobilityModel(
hasACar: json['has_car'] as bool? ?? false,
canRelocate: json['can_relocate'] as bool? ?? false,
);
}
final bool hasACar;
final bool canRelocate;
Map<String, dynamic> toJson() {
return {
'has_car': hasACar,
'can_relocate': canRelocate,
};
}
}