ModulesModel.fromMap constructor

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

Implementation

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