bLOQUE p1 BACKEND Y SEGURIDAD, AUTENTICACION CON SUPABASE. jwt. RBAC CRUD
This commit is contained in:
22
recolecta_app/lib/core/models/address.dart
Normal file
22
recolecta_app/lib/core/models/address.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'colonia.dart';
|
||||
|
||||
class AddressModel {
|
||||
const AddressModel({
|
||||
required this.label,
|
||||
required this.street,
|
||||
required this.colonia,
|
||||
});
|
||||
|
||||
final String label;
|
||||
final String street;
|
||||
final Colonia colonia;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return <String, dynamic>{
|
||||
'label': label,
|
||||
'calle': street,
|
||||
'colonia': colonia.nombre,
|
||||
'route_id': colonia.routeId,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user