AvailabilityModel.fromMap constructor

AvailabilityModel.fromMap(
  1. Map<String, dynamic> data
)

Implementation

factory AvailabilityModel.fromMap(Map<String, dynamic> data) {
  return AvailabilityModel(
    totalcount: data['totalcount'] as int?,
    data: (data['data'] as List<dynamic>?)
        ?.map((e) => Datum.fromMap(e as Map<String, dynamic>))
        .toList(),
  );
}