You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
Dart
49 lines
1.3 KiB
Dart
|
6 years ago
|
class ActivationCodeModel {
|
||
|
|
String mobileNumber;
|
||
|
|
String zipCode;
|
||
|
|
int channel;
|
||
|
|
int languageID;
|
||
|
|
double versionID;
|
||
|
|
int memberID;
|
||
|
|
String password;
|
||
|
|
int facilityId;
|
||
|
|
String generalid;
|
||
|
|
|
||
|
|
ActivationCodeModel(
|
||
|
|
{this.mobileNumber,
|
||
|
|
this.zipCode,
|
||
|
|
this.channel,
|
||
|
|
this.languageID,
|
||
|
|
this.versionID,
|
||
|
|
this.memberID,
|
||
|
|
this.password,
|
||
|
|
this.facilityId,
|
||
|
|
this.generalid});
|
||
|
|
|
||
|
|
ActivationCodeModel.fromJson(Map<String, dynamic> json) {
|
||
|
|
mobileNumber = json['MobileNumber'];
|
||
|
|
zipCode = json['ZipCode'];
|
||
|
|
channel = json['Channel'];
|
||
|
|
languageID = json['LanguageID'];
|
||
|
|
versionID = json['VersionID'];
|
||
|
|
memberID = json['MemberID'];
|
||
|
|
password = json['Password'];
|
||
|
|
facilityId = json['facilityId'];
|
||
|
|
generalid = json['generalid'];
|
||
|
|
}
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||
|
|
data['MobileNumber'] = this.mobileNumber;
|
||
|
|
data['ZipCode'] = this.zipCode;
|
||
|
|
data['Channel'] = this.channel;
|
||
|
|
data['LanguageID'] = this.languageID;
|
||
|
|
data['VersionID'] = this.versionID;
|
||
|
|
data['MemberID'] = this.memberID;
|
||
|
|
data['Password'] = this.password;
|
||
|
|
data['facilityId'] = this.facilityId;
|
||
|
|
data['generalid'] = this.generalid;
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
}
|