26 lines
601 B
Dart
26 lines
601 B
Dart
class DemoProfile {
|
|
const DemoProfile({
|
|
required this.name,
|
|
required this.email,
|
|
required this.password,
|
|
required this.colonia,
|
|
required this.routeId,
|
|
});
|
|
|
|
final String name;
|
|
final String email;
|
|
final String password;
|
|
final String colonia;
|
|
final String routeId;
|
|
|
|
factory DemoProfile.fromJson(Map<String, dynamic> json) {
|
|
return DemoProfile(
|
|
name: json['name'].toString(),
|
|
email: json['email'].toString(),
|
|
password: json['password'].toString(),
|
|
colonia: json['colonia'].toString(),
|
|
routeId: json['routeId'].toString(),
|
|
);
|
|
}
|
|
}
|