Customer.from constructor
Customer.from(
- Map json
Convert Map to Customer
Implementation
Customer.from(Map json)
: id = json['id'],
referenceId = json['referenceId'],
email = json['email'],
givenNames = json['givenNames'],
surname = json['surname'],
description = json['description'],
mobileNumber = json['mobileNumber'],
phoneNumber = json['phoneNumber'],
nationality = json['nationality'],
dateOfBirth = json['dateOfBirth'],
cardInfo = json['cardInfo'],
addresses = (json['addresses'] as List)
.map((item) => Address.from(item))
.toList();