GetUserDetail.fromJson constructor
GetUserDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
GetUserDetail.fromJson(Map<String, dynamic> json) {
address =
json['address'] != null ? new Address.fromJson(json['address']) : null;
wallet =
json['wallet'] != null ? new Wallet.fromJson(json['wallet']) : null;
name = json['name'];
sId = json['_id'];
phoneNumber = json['phoneNumber'];
country = json['country'];
promotionalOptIn = json['promotionalOptIn'];
lastPurchasedOn = json['lastPurchasedOn'];
hashedPhoneNumber = json['hashedPhoneNumber'];
previousSubscriber = json['previousSubscriber'];
existingSubscriber = json['existingSubscriber'];
}