ModulesResponseBody.fromMap constructor

ModulesResponseBody.fromMap(
  1. Map<String, Object?> obj
)

Implementation

ModulesResponseBody.fromMap(Map<String, Object?> obj)
    : modules = (obj['modules'] as List)
          .map((item) => Module.fromJson(item as Map<String, Object?>))
          .toList(),
      totalModules = obj['totalModules'] as int?;