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