skywood/lib/utils/models/user/register_bean.dart

18 lines
463 B
Dart

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