WebScript({required this.name, required this.script}) : assert(name.isNotEmpty && script.isNotEmpty);