SubscriberList.fromMap constructor
Implementation
factory SubscriberList.fromMap(Map<String, dynamic> map) {
return SubscriberList(
total: (map['total'] is String)
? int.tryParse(map['total']) ?? 0
: map['total'] ?? 0,
subscribers: List<Subscriber>.from(
map['subscribers'].map((p) => Subscriber.fromMap(p))),
);
}