You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.3 KiB

3 years ago
class GoogleUser {
String? firstname;
String? surname;
String? email;
String? gender;
String? username;
String? userGUID;
String? country;
String? pictureUri;
String? deviceToken;
String? referralCode;
3 years ago
GoogleUser({
this.firstname,
this.surname,
this.email,
this.gender,
this.username,
this.userGUID,
this.country,
this.pictureUri,
this.deviceToken,
this.referralCode,
});
factory GoogleUser.fromJSON(Map<String, dynamic> json) {
return GoogleUser(
firstname: json['firstname'],
surname: json['surname'],
email: json['email'],
gender: json['gender'],
userGUID: json['userGUID'],
username: json['username'],
country: json['country'],
pictureUri: json['pictureuri'],
deviceToken: json['devicetoken'],
referralCode: json['referral'],
);
}
Map<dynamic, dynamic> toJson() {
final Map<dynamic, dynamic> data = Map<dynamic, dynamic>();
data['firstname'] = this.firstname;
data['surname'] = this.surname;
data['email'] = this.email;
data['gender'] = this.gender;
data['userGUID'] = this.userGUID;
data['username'] = this.username;
data['country'] = this.country;
data['pictureuri'] = this.pictureUri;
data['devicetoken'] = this.deviceToken;
data['referral'] = this.referralCode;
return data;
}
}