AppInstallationList.fromMap constructor

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

Implementation

factory AppInstallationList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'installations': [],
    ...map,
  };

  return AppInstallationList(
    total: map['total'],
    installations: List<AppInstallation>.from(
      map['installations'].map((p) => AppInstallation.fromMap(p)),
    ),
  );
}