PhoneList.fromMap constructor

PhoneList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory PhoneList.fromMap(Map<String, dynamic> map) {
  return PhoneList(
    total: map['total'],
    phones: List<Phone>.from(map['phones'].map((p) => Phone.fromMap(p))),
  );
}