PlansModel.fromMap constructor

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

Implementation

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