toJson method

Map toJson()

Implementation

Map toJson() {
  final List<Map> scripts = map((e) => e.toJson()).toList(
    growable: true,
  );
  return {
    "@type": "scriptGenerators",
    "total_count": scripts.length,
    "scripts": scripts,
  };
}