first commit

This commit is contained in:
Anbarasu
2026-05-26 18:01:57 +05:30
commit 6d59c8daf6
297 changed files with 35238 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import '../../modules/tenant/get_tenant.dart';
class CustomerTenantResponse {
final Customer customer;
final List<Tenant> tenants;
CustomerTenantResponse({required this.customer, required this.tenants});
factory CustomerTenantResponse.fromJson(Map<String, dynamic> json) {
return CustomerTenantResponse(
customer: Customer.fromJson(json['data']['customer']),
tenants: (json['data']['tenants'] as List)
.map((e) => Tenant.fromJson(e))
.toList(),
);
}
}