ProviderList.fromMap constructor

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

Implementation

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