Current File : /home/tradevaly/www/fresh/lib/data/model/response/signup_model.dart |
class SignUpModel {
String fName;
String lName;
String phone;
String email;
String password;
SignUpModel({this.fName, this.lName, this.phone, this.email='', this.password});
SignUpModel.fromJson(Map<String, dynamic> json) {
fName = json['f_name'];
lName = json['l_name'];
phone = json['phone'];
email = json['email'];
password = json['password'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['f_name'] = this.fName;
data['l_name'] = this.lName;
data['phone'] = this.phone;
data['email'] = this.email;
data['password'] = this.password;
return data;
}
}