Creates Map from Class Object
Map
Map<String, dynamic> toJson() => <String, dynamic>{ 'modules': modules.map((value) => value.toJson()).toList(growable: false), };