String? optionalParam(String name) { final param = this[name]; return param is String ? param : null; }