SubscriberModel.fromMap constructor
SubscriberModel.fromMap(
- Map<String, dynamic> map
)
Implementation
factory SubscriberModel.fromMap(Map<String, dynamic> map) {
return SubscriberModel(
subscriberId: map['subscriberid'],
subscriberName: map['subscribername'],
address1: map['address1'],
address2: map['address2'],
city: map['city'],
region: map['region'],
zipcode: map['zipcode'],
country: map['country'],
subscriberCountry: map['subscribercountry'],
mobileNo: map['mobileno'],
email: map['email'],
setPassword: map['setpassword'],
profileId: map['profileid'],
profileName: map['profilename'],
kidsMode: map['kidsmode'],
gender: map['gender'],
dob: map['dob'],
pgratting: map['pgratting'],
profilePin: map['profilepin'],
picture: map['picture'],
age: map['age'],
created: DateTime.parse(map['created']),
loginExpiry: map['loginexpiry'],
);
}