18 lines
467 B
Dart
18 lines
467 B
Dart
|
|
class RegisterModel {
|
|
final String token;
|
|
final int customerId;
|
|
final bool? autoLogin;
|
|
final int touristId;
|
|
|
|
RegisterModel({required this.token, required this.customerId, this.autoLogin, required this.touristId});
|
|
|
|
factory RegisterModel.fromJson(Map<String, dynamic> json) {
|
|
return RegisterModel(
|
|
token: json['token'],
|
|
customerId: json['customer_id'],
|
|
autoLogin: json['auto_login'],
|
|
touristId: json['tourist_id'],
|
|
);
|
|
}
|
|
} |