@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'scripts': scripts?.map((f) => f.toJson()).toList(), };